Checking the Running Processes: top
Check the current directory Path: pwd
List all the files in the current directory: ls
View a text file in the terminal: cat file_name
Goto previous Directory: cd ..
Goto home: cd ~
Remove File or Folder : rm filename OR
rm directory name
Remove non empty Folder : rm -r directoryname
Removing everything from the directory without warning : if you are inside the directory then use
rm -rf * OR
rm -rf ./*
Deleting Hidden Files : rm –rf .??*
For help or more information about rm use:
info rm
man rm
rm --help
Find a text: There are different commands that can be used to find text
1. find . -exec grep "Text to be searched" '{}' \; -print
How to open / view a Pdf from console:
1. gpdf filename.pdf
2. kpdf filename.pdf
3. xpdf filename.pdf
4. evince filename.pdf
How to open / view a Pdf from console:
1. gpdf filename.pdf
2. kpdf filename.pdf
3. xpdf filename.pdf
4. evince filename.pdf
Extract .tar.gz files:
Decompress .gz files:
tar xvf packagename.tar.gz
Decompress .gz files:
gunzip file.gz
setting a file as executable:
sudo chmod +x filename
No comments:
Post a Comment