Thursday 30 October 2014

LINUX COMMANDS

Linux:

ls          listing
ls  -l      long listing
ls  -a     listing the hidden files(starts with .)
ls  -s     listing according to the size
ls  -t      listing according to time
ls  -r      listing in reversed order

cd                   change directory
cd ..                change to previous directory
cd ./..              change back to two directories back at a time
cd ~                shows the home directory
mkdir             make a new directory
pwd                shows the present working directory / Current directory
chmod            giving the permissions of the directory or file
umask            change the permissions of the filer or directory
cat  a.txt        opena new file
cat  > a.txt     concatenate/ create a new file
cntrl+D          save and quit the cat file
cntl+Z            suspend the action

cp                  copy
rm                 remove a file
rm  -f            force remove a directory
mv                move





No comments:

Post a Comment