Linux basic Command with Example
For online practice I used this site :
http://bellard.org/jslinux/
1)
2)
3)
4)
5)
6)
mkdir :- To create new Directory and Folder.
ls
:- to show list of all files & folder
touch : - to make empty files.
cd :to change directory
pwd :- to check present directory in which we are working
syntax is look likes
root@localhost Desktop] #
in this root = username
localhost is = computer name
desktop is = present working directory
7) ls t :- to show complete detail
8) cd .. :- to come back completely out from directory.
9) cd - :- use to come back last directory
10)
rm file name ( rm abc ) :- to delete any file
11)
rm -r folder name (rm r ravi ) :- to delete empty folder
12)
rm -rf folder name (rm rf ravi ) :- to delete folder contain any
file
13)
Date :- to check current date
14)
To change date syntax is = date 0415220014
04 = month
15= date
2200 = time
14 = year
15)
cal :- to check calendar (cal 2016 to check complete year)
cal 7 2016 = for july month.
16)
I hope u like it . & do some practice in free time.