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/"

Comments

  1. hilal

    11 years ago

    thx for tut :)

  2. Johannes

    5 years ago

    This site is absolutely brilliant !