Command | Description |
---|---|
cd .. | Move up one level to upper directory. |
cd /root | Move |
pwd | Show working directory (your current position). |
ls -lah | Show all files and directory in working dir with format as list, all (show hidden files) and human readable size (eg. with Mb). I use it as general listing. |
ls -ltr | ls with order by date. |
ls | wc -l | Count files on a directory. |
ls -lahS | ls with order by file size. |
df -h | Check disk space. |
du -hd 1 /root | Check disk usage for every directories under |
wget -c -url- | Use |
grep -Rnw '/path/to/search' -e 'pattern' | find in files, use |
Linux Commad Quick Reference
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment