Get a file from Internet
wget http://ftp.drupal.org/files/projects/drupal-7.24.tar.gz
Extract (more about tar command)
tar -xvzf drupal-7.24.tar.gz
Compress files/folder
tar -cvf sourfiles.*
List of File (including hidden files)
ls -al
Remove file
rm drupal-7.24.tar.gz
Remove folder
rmdir drupal-7.24
Move All Files and Folders to the parent folder
mv * ..
Create a directory
mkdir name
Edit a file
nano filename.ext
Copy files from one folder to another
cp -R temp/sites/ website
Copy files/folders from local desktop to server through SSH
scp -r /user/username/Desktop/test username@yourserver.com:aFolderInRoot
Show the current location (path) you are in
pwd
Show the account/user name you are currently logged with
whoami
Permission
d rwx rwx r-x
Directory Owner Group Other(everybody)
For help
man, info, help, apropos command or command –help
In man cp (for example), press spacebar to next page, press b for one page back, press q for quitting the current manual for the command.
Sites
unixtutorial.org/commands
freeengineer.org/learnUNIXin10minutes.html
The post Linux 101 appeared first on Living in IT.