Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
notes
#1

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.

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

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

Reply
#4
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)