$ ls$ cp file.txt directory/$ cp file.txt file.txt.back$ cp -a sourceDirectory/ targetDirectory/$ mv file.txt directory/$ mv readme.txt README.md$ rm directory/$ rm -rf directory/$ rsync -a images/ images2/
$ rsync -av images/ images2/$ touch file.txt$ ehco "some information" > file.txt$ mkdir directory/
$ mkdir -p src/main/java/com/package$ cat file.txt
$ less file.txt$ stat -x file.txt$ du -sh directory/$ zip -r target.zip directory/$ unzip target.zip$ zipinfo target.zip$ tree
$tree -L 1brew install tree required.
$ find . -iname "*.info"
$ find . - -mtime +5
$ find . -name "file.txt" -delete$ cal
$ cal 11 2020$ date
$ date -d "+7days"$ bc$ pstreebrew install pstree required.
$ kill <pid>$ killall <name>$ curl http://localhost:8080/hello
$ curl ifconfig.me
$ curl -X POST http://localhost:8080/increments -H 'Content-Type: application/json' -d '{"key":"count","value":0}' -w '\n' -iv
$ curl -X POST --cert client.crt --key client.key --cacert ca.crt --pass <passwd> https://localhost:8080/files -H 'Content-Type: multipart/form-data' -F 'file=@"./README.md"' -F 'payload="{\"path\": \"./README.md\"}";type=application/json' -w '\n' -k$ grep file.txt
$ grep -rnw . -e 'Some content'$ open file
$ open directoy/$ echo "some information" >> file.txt$ df -h$ nc -zv <host> <port>$ lsof -iTCP:8080 -sTCP:LISTENCtrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Lets you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and directory names