i know
killallterminate a program, not the best so you can checkbpytoptouchcreate a file, modify the access time of a filewhichwhere a program ispingtest networkless <file>orcat <file> | morebetter than cat when creating long filessudo blkidlist all the devices on a machine, find the uuid for a devicesudo -sact as a root for some time instead of typing sudo every timesu <user>change usersudoallows us to act as the root user
Piping / chaining
ls | cat allowing the standard output from the ls command to be the standard input for the cat command
e.g: cat contacts.txt | sort | uniq | grep something
running multiple commands at once
- using
;run both commands - using
&&run the second command if the first succeeds - using
||run the second command if the first fails
e.g: mkdir hi && cd hi
the find command
find <locationToSearch>
redirection
Redirecting the output into a file
echo hi > hi.txt overwrite redirection
echo hi >> hi.txt append redirection
e.g: sort < contacts.txt > sorted-contacts.txt
sudo
sudo !! Run sudo to the previous command