Filesystem Commands
Basic Filesystem Commands
The following are the core commands used to navigate and use files:
Command
Description
cd
Changes to Another Directory
pwd
Prints the Name of the Current Working Directory
mkdir
Creates a Directory
chmod
Changes the Permission on a File or Directory
ls
Lists the Contents of a Directory
touch
Used to Change a File Timestamp, or if the file does not exist, Creates a New, Empty File
mv
Moves a file or Directory - also used to rename files and dirs
Last updated
Was this helpful?