General

Up and Down cursor keys
Select previous commands

 --help
Use after a command to get help on its options

Directories

cd some_directory_name
Go to directory

cd
cd ~
Go to $HOME directory

cd ..
Go up a directory

cd -
Go to previous directory

pwd
Where am I - show current directory

ls
List contents of directory

ls -alh
What's here - list all files and folders

mkdir my_directory_name
Make a directory

sudo rm -r my_directory_name
Delete a directory and any files it contains

Files

rm somefilename.*
Remove file or files

cp existing_file.txt new_file.txt
Copy file

cp /some_folder/existing_file.txt .
Copy file to current working directory


wget http://downloads.somedomain.com/...
Download file
Move or rename file
mv {old-dir-name} {new-dir-name}
Move all files
"mv /path/sourcefolder/* /path/destinationfolder/"

"mv /path/sourcefolder/*.txt /path/destinationfolder/"
USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

  1. Johannes

    3 years ago

    This site is absolutely brilliant !

Leave a Reply to hilal Cancel reply

Your email address will not be published. Required fields are marked *