zsh Terminal
Linux commands when working with WSL
Typischer Workflow (Beispiel 1)
File Navigation & Exploration
- Check the current linux version:
uname -a
- Use
ls to list the content of a directory
- List content with more human readable information:
ls -l -h
- Print current directory:
pwd
- Change directory:
cd ..
- Move into directory:
cd name_of_folder
- Go to home directory:
cd ~
File Operations
- Create a new file:
touch my_file.txt
- Remove file:
rm my_file.txt
- Create a new directory:
mkdir name_of_folder
- Read file content:
cat my_file.txt
- View file content:
cat filename.csv or less filename.csv (for larger files)
- Get statistics about the file:
stat my_file.txt
- File size and disk usage:
du -h filename or df -h for disk space
File Editing