Help - Search - Members - Calendar
Full Version: notes
linux-noob.com/forums > Linux Noob > Tips and Tricks
Digerati
Make yourself a notes file to keep documentation on changes you made on your system or just general notes about commands and things.

I created a file called notes.txt at /var/notes.txt and when I want to add to it simply do this


[digerati@rh9 /]$ cat >> /var/notes.txt
type something and hit ctrl d when finished.

Since this >> appends to the file I like to add a # sign before the actual typing like:


[digerati@rh9 /]$ cat >> /var/notes.txt
#
type something and hit ctrl d when finished.
kZo
I believe the ">>" only adds to the bottom of the file? Correct? Anychance we can get it to add to the top? Newest first?
Digerati
" >> " is append meaning append to the end of the file.

I dunno how to get it to the top of the file. Not yet anyways....
lytez
Appending to the end of a file makes sense. Since that way you can use a simple 'tail' to see the recent changes you have made to your notes file.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.