Linux looks scary at first, but a few commands cover most daily work.
1. Where am I?
pwd
2. List files
ls -la
3. Change directory
cd /var/log
cd .. # go one level up
cd ~ # go home
4. Create folders and files
mkdir projects
touch notes.txt
5. Copy, move, rename
cp notes.txt backup.txt
mv backup.txt old.txt
6. Delete (be careful)
rm old.txt
rm -r foldername
There is no recycle bin here, so check twice.
7. Read files
cat notes.txt
less notes.txt
tail -n 20 notes.txt
8. Search text
grep -i "error" notes.txt
9. Check disk and memory
df -h
free -h
10. Get help
man ls
ls --help
Final tip
Don't memorize everything. Practice these daily in a test machine or VM.
Practice in our Linux Lab
No setup needed to start practicing. Try these commands in our browser-based Linux lab:
๐ Nexvelor LinuxLab
If you find it useful, share it with a friend who is learning Linux.
Written by Pratik Mule | Linux Administrator
๐ More about me: pratikmule127.github.io
๐ผ LinkedIn: linkedin.com/in/pratik-mule
๐ Portfolio: pratikmule127.github.io
๐ GitHub: github.com/pratikmule127
๐งช DB PracticeLab repo: github.com/nexvelorcloud/db-practice-lab
๐ Live Lab: dblab.nexvelor.qzz.io
Top comments (0)