Linux Tutorial for Beginners – 7 – Saving Results to a File

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

13 responses to “Linux Tutorial for Beginners – 7 – Saving Results to a File”

  1. Joni Subroto Avatar

    Oh man, your Linux Tutorial is really awesome. Really easy to understand, even for non native English speaker like me. Thanks.

  2. Sean Xiao Avatar

    summary:> overwrite,>>append

  3. TheSurvivor4 Avatar

    Had to like… Couldn't stand seeing the likecount being 299 😉

  4. Alexir B Avatar

    Does this have any actual practical uses?

  5. Venkata Sarath Avatar

    when the command ls is typed, it showed five results. But on the desktop there are two files. And also in the result it is written "Corn~" "Corn~" "Story~", what this mean?

  6. sicktoaster Avatar

    Is there a way to do this but including the previous output already displayed in terminal instead of only the output starting with where you first put in "tee"? Thanks.

  7. Falstad007 Avatar

    Is there a way to do this but create the file in another directory?

    For instance if I wanted to get ls for /etc/ but save it on my desktop I assumed I'd use the following command:

    ls > (filename) /home/user/Desktop

    The terminal doesn't return an error with that command, but it also doesn't create the file in a new directory.

    Any suggestions?

  8. Ancient Laws Avatar

    Finding these video's is like finding a pot of gold. Thank you so much!

  9. Victor Kyalo Avatar

    this. is. awesome. thank you for making these tutorials for beginners like me

  10. tamboleo Avatar

    What ~ stands for?

  11. James Fawcus-Robinson Avatar

    Another way to do this is to use the 'tee' command. Instead of just redirecting the output of a command to a file, 'tee' also outputs to STDOUT. This comes in handy if you want to keep an eye on something while logging the output. You simply have to pipe the output to 'tee' :
    'pwd > bacon'  –>  'pwd | tee bacon'
    'pwd >> bacon'  –>  'pwd | tee -a bacon'

  12. Luiz Paulo Avatar

    Nice tutorial. thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *