Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 669 Bytes

File metadata and controls

19 lines (18 loc) · 669 Bytes

📁 File & Directory Commands

pwd                # Show current working directory
ls                 # List files and folders
ls -a              # List all files including hidden
ls -l              # List files with details
cd foldername      # Change into directory
cd ..              # Go up one level
mkdir folder       # Create a new folder
rmdir folder       # Remove empty folder
rm filename        # Delete a file
rm -r folder       # Delete folder and contents
touch file.txt     # Create a blank file
cp file1 file2     # Copy file
mv old new         # Rename or move file
cat file.txt       # Show file content
stat file.txt      # File info