Shell command cheatsheet
Path manipulation
basename
: Get the name of the file.dirname
: Get the directory of the file.realpath
: Get the real path of the file (rip away the relative, and links).pwd -P
: Get full path of current directory
basename
: Get the name of the file.dirname
: Get the directory of the file.realpath
: Get the real path of the file (rip away the relative, and links).pwd -P
: Get full path of current directory