Linux: Navigate Directory
cd dirPath- Change directory
cd-
Go to
$HOMEdir cd ..- Go up one dir
pwd- Show the current dir
pushd-
save the current dir by pushing it to a stack.
(use
popdto go back.) popd-
goto the dir in stack. (last dir
pushd)
Many of these command's argument can be either a file name (relative to current directory), or a full path, e.g. ls /usr/local/bin
Linux, Files and Dirs
- Linux: Navigate Directory
- Linux: List Files
- Linux: Walk Dir. find, xargs
- Linux: View Directory as Tree
- Linux: Copy File
- Linux: Move or Rename File
- Linux: Create New File
- Linux: Create New Dir
- Linux: Delete File or Dir
- Linux: Show Directory Size: du
- Linux: Show Difference Between Directories
- Linux: rsync Tutorial