Linux Basic commands
Usefull Linux Basic Commands to learn. A command is an instruction given by a user telling a computer to do something.Commands are generally issues by typing them in at the command line and then pressing enter key,which passes them in to shell. A shell is a program that reads commands that are types on a keyboard and then executes them.It is the most basic method for a user to interact with the system.
cd | Changes directory |
cd .. | Move up one directory |
cd ~ | Take you back to your home directory |
mkdir | Make directory |
rmdir | Remove directory |
ls | list files |
mv | Move file from one directory to another |
cp | copy file with *.bak |
tat cvf *.tar dirname/ | c->Create a new archive v->files which are processed f->following is the archive filename The cvf option does not provide any compression |
tar cvzf *.tar.gz dirname/ | zip compression by using z option |
unzip filename | unzip the file name |
tar -xzvf *.gz | Extract the zipfile |
df | disk free df -H -Show the no of occupied blocks in GB,MB |
free | Displays information about RAM and swap space |
touch filename.* | Create file |
rm -f filename.* | Remove file |
rm -rf filename.* | Remove folder |
date MMDDHHmmYYY | To set date |
Set time and date | date -s “19 APR 2012 11:14:00 |
About Permissions | date -s “19 APR 2012 11:14:00 |
About Permissions | 1)chmod 755(or)0755—-> drwxr-xr-x d->denotes type of file Group and world should not be enable to write access.thats denotes “-”
2)chmod 644(or)0644——>drw-r–r– 3)chmod 700(or)0700——->drwx—— |
For Linux Distribution Commands Refer this link Linux Distro-Command