Print working directory - shows your current location in the filesystem
$ pwd # Output: /home/user/documents
cd [directory]
Change directory - move to a different folder
cd /path/to/dir # Absolute path
cd .. # Move up one level
cd ~ # Home directory
cd - # Previous directory
ls [options] [directory]
List directory contents - view files and folders
ls -l # Long format with details
ls -a # Show hidden files
ls -lh # Human-readable file sizes
ls -t # Sort by modification time
ls -R # Recursive listing
2
File Operations
touch filename
Create empty file or update file timestamp
touch file.txt
touch -t 202301010000 oldfile.txt # Set specific
timestamp