Linux-Noob Forums
notes - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+--- Thread: notes (/thread-3987.html)



notes - Digerati - 2003-12-15


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.




notes - kZo - 2003-12-15

I believe the ">>" only adds to the bottom of the file? Correct? Anychance we can get it to add to the top? Newest first?



notes - Digerati - 2003-12-15


" >> " 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....




notes - lytez - 2003-12-15

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.