
touch -t 05070915 my_report.txt
touch [a file name]There may be times in the future when you need an empty file that will be filled up later automatically by the workings of some program. We'll deal with the uses of 'touch' in our later courses.
find -name *hawaii*
find -mmin +0 -mmin -10
find -mmin +0 -mmin -120 | less
pico mary1.txt
grep Mary mary*.txt
ls -l | tee directory_listing
date | tee -a directory_listing
ls -l > directory_listing
date >> directory_listing
[program X that doesn't work] 2> program_X_error
whatis grepfor example, and you would get this:
whatis orange juiceYou will get this message:
whereis [program name]and find out.
whereis pico
which java
echo helloLinux will display the word 'hello' .
echo remember to tell Bill Gates he owes me 5 bucks | tee -a bill_gates.note
echo remember to open Gates note | tee -a remember_gates.note
wc people_I_owe_money.note
pwdyou may get something like this:
date
date +%D
date +%T
date --date 'Dec 25'
cal 2000
cal 12 2025
cal 10 1492and I found out that Columbus discovered America on a Friday. That was good luck for him because that way he got to relax for the weekend.