CLI more - 1
$ clear
$ who am i
$ whoamicount files
$ ls -l | wc -l
$ ls -l *.md | wc -l
$ ls -F | grep -V / | wc -lshutdown / reboot
$ sudo reboot
$ sudo shutdown -h nowsize
// size of target_dir
$ du -sh target_dir
// size of disk
$ df -hmove or copy
$mv old_dir_path new_dir_path
$cp -r source_dir target_dirscp
find
Shebang
script.sh
#! interpreter
& return pid
Variable
variable name should be uppercase
old syntax: `SERVER_NAME=hostname```
Last updated
Was this helpful?