The apropos command searches a database of commands, using keywords: apropos <keyword> Note that your keyword might not work. So try different keywords until it does! If apropos does not work, you probably need to rebuild...
This is called command stacking.
To stack commands, use a semicolon (;) between commands, like this:
cd /etc ; ls -l
Be very careful when command stacking, especially when deleting or moving files! Make sure what you typed is what you want!
To see and choose previous commands, use the up arrow. Up to 500 of your last commands are stored in .bash_history (note the period before the file name). To automatically run the previous command, use this: !! To run a command that...
locate = find data files, programs, directories, & objects matching your search. For example: locate license Since you usually receive quite a long list when running locate, you’ll probably want to do this: locate <search term>...
Insert this line at the end of /etc/rc.d/rc.local: rdate -s time.ucla.edu You can use any Network Time Protocol (NTP) server. For a full list, try . Or search Google for “ntp servers”. You can also run rdate -s time.ucla...
Add the following lines to /etc/rc.d/rc.local:
echo -n "Turning on numlock ... "
for tty in /dev/tty[1-6] /dev/tty1[2]; do
setleds -D +num < $tty &
done
echo "done "
shutdown -r now = reboot immediately
shutdown -h now = shutdown immediately
shutdown -r +5 = reboot in 5 minutes
I recently wrote a letter to my congressperson. I don’t remember the name of the file, but I created it less than 7 days ago, it was smaller than 100k, and it contained the work ‘Nesto’. How would I use locate to find this file...