Sana1 Linux
Sana1 Linux
1) ECHO
Syntax-Echo hello
Description-it is used for display a line of text
2) who am i
Syntax:- Who am i
Description:- it is used for print effective user id
3 ) whoami
Syntax:- whoami
Description:- it is used to print effective user id
4 ) who
Syntax:- Who
Description:- it is used to show who logged on
5 ) Clear
Syntax:- clear
Description:- it is generally used for clear the screen
6 ) Calendar
(a) cal
Syntax:- cal
Description:- it is generally used for display the current month of the calendar
(b) Cal 09
Syntax:- cal 09
Description:- it is generally used for display the calendar of the year.
7 ) Date
Syntax:- date
Description-it is used for print current date
8 )Uptime
Syntax:- Uptime
Description :-it is used to display the on time of server
9 ) Uname
Syntax:- Uname
Description :- it is used to display the system information
10 ) Logname
Syntax :- Logname
Description-it is used to display the user name
11 ) Ulimit
Syntax:- Ulimit
description- it is used to display the set or report file size limit
12 ) Dir
Syntax:- Dir
Description:- it is used to show the list directory contents
13 ) Man
Syntax:- Man
Description-it is used to display system documentation
14 ) Hostname
Syntax:- Hostname
Description-it is used to show the system host name
15 ) TTY
Syntax:- Tty
Description-it is used to show the return users terminal name
Assignment-2
1 ) Pwd
Syntax :- Pwd
Description-it is used to print name of current working directory
2 ) Mkdir
Syntax:- mkdir neha001
Description:- it is used for making the directory
3 ) cd
Syntax-:cd neha001
Description-it is used to show the current directory where we are working
4 ) cd ..
Syntax:- cd ..
Description-its used to exit from the current folder
11) touch
Syntax:- touch neha1 neha2
Touch:- it is used to create empty file.
13) copy
Syntax:- cp neha001 neha123
Description:- it is used for copy the contents from one file to another
14) whatis
Syntax:- whatis dir
Description:- it is used for know the details of the command.
15)rm
Syntax:- Rm neha12
Description:- its used for removing the file from the directory
16)rm i
Syntax:- rm I neha12
Description:- its used for remove the files with permission
17)rmdir
Syntax:- rmdir neha143
Description:- its used for remove the directory
Assignment-3
1)ls
Syntax:- ls
Description:-its used for view all the file except hidden file
2)ls -1
Syntax:- ls -1
Description:- it is used for viewing the file in vertical way
3)ls r
Syntax: ls r
Description:- it is used for view the file in reverse order
4) ls a
Syntax:- ls a
Description:- it is used for view all the file including hidden files
5) ls l
Syntax:- ls l
Description:- its used for view all the file with the detail
Assignment-4
1)*
Syntax:- d*
Description:- it is generally used for knowing all the file which name starts from d
2) ?
Syntax:- ls neh*143?7
Description:- it is generally used for knowing the missing character file
3) [-]
Syntax:- ls neha143[1-9]
Description:- it is generally used for view the file in range
4) [,]
Syntax:- ls n[1,2,3,4]
Description:- it is generally used for view the specific file
Assignment-5
1) Wc
Syntax:- wc neha143
Description:- it is used to match number of characters
2) Wc l
Syntax:- wc c
Description:- It is used to study the characters in a line
3) Wc w
Syntax:- wc w neha143
Description:- it is used to denote the no of lines in the files
4) wc l
Syntax:- wc l neha143
Description:- it is used to denote the no of lines in the file
Assignment-6
1 ) u+r,g+w,o-x
Syntax:- chmod u+r,g+w,o-x neha
Description:-
2) U+r,g-x,o-r
Syntax:- chmod u+r,g+w,o-x file1
Description:-
3) U-x ,g+x,o+r
Syntax:- chmod u-x,g+r,o+r file1
Description:-
4) u+x,g+x,o-w
Syntax:- chmod u+x,g+x,o-w file1
Description:-
5)770
Syntax:- chmod 770 file1
Description:-
6) 750
Syntax:- chmod 750 file1
Description:-
7 ) 644
Syntax:- chmod 644 file1
Description:-
8) 400
Syntax:- chmod 400 file1
Description:-
9)522
Syntax:- chmod 522 file1
Description:-
10) 502
Syntax:- chmod 502 file1
Description:-
Assignment-7
OUTPUT
ASSIGNMENT-8
1. Syntax: df
Description: report free disk space.
Snapshot:
2. Syntax: du
Description: estimate files usage.
Snapshot:
3. Syntax: free
Description: display amount of free memory.
Snapshot:
9. Syntax: cmp fb fs
Description: compare two files byte to file.
Snapshot:
Snapshot:
Assignment - 9
Redirection
1.Cal>fn
Syntax: cal>neha143
Description:
2. Date>>fn
Syntax: date>>neha143
Description:
3. ls>fn
Syntax: ls>neha143
Description:
4. Sort<fn
Syntax:
Description:
5. Sort<f1>f2
Syntax: sort<neha143>f2
Description:
6. Who|ls l>f4
Syntax: who|ls l>f4
Description:
7. Cat f3|greppattern>fn
Syntax: cat f3|grep 10>neha143
Description:
Pipes
2. Cat fn|sort r
Syntax: cat teacher|sort r
Description:
3.Who|ls l
Syntax: Who|ls l
Description:
4. ls l|grep pattern
Syntax: ls l|grep 5
Description:
5. ls l|grep pattern|sort r
Syntax: ls l|grep 6|sort r
Description:
6. ls|wc l
Syntax: ls|wc l
Description:
7. who|wc
Syntax: who|wc
Description:
8. Cat fn|wc c
Syntax: cat teachers|wc c
Description: