Shell Script
File exists
With the if statement
With the "&&" operator
Folder exists
Or not exists
Find differences between foldes
Show ports in use
Create alias
Insert the line below to your ~/.zsh.rc
or ~/.profile
Cheatsheet of multiple commands
Example
Read every line from a file
In the example below read every line from a file and do something.
Log
Basic view of records
To see the logs that the journald
daemon has collected, use the journalctl
command
Last updated