In: Computer Science
the Unix/Linux commands
Whoami shows my username
when you run touch on an already existing file is that the file's access and modification timestamps are updated to the current time..
for more information on touch command, you can do "man touch".
2. echo “Hello there, my name is …yourname….” > memo.txt
above command will redirect the output of echo command to file having name memo.txt. if file already there, then content will be overwritten.
3. date >> memo.txt
this command will redirect the output of date command which is current date to file memo.txt. it will not overwrite, but at the end of the file it will append that output of date.
4. cal >> memo.txt
same as 3rd one, but redirects the output of calender command.
5. wc -lwc memo.txt
this will print statistics. l for line, w for word, c for character.
6. to display output of file pagewise... use following command...
cat output | more
Hope it helps. Feel free to comment your doubts.