Linux Networking > Terminal Commands 1

Operating Systems

Linux Networking > Terminal Commands 



[root@localhost ~]# mkdir PRATHAMESH
[root@localhost ~]# cd PRATHAMESH
[root@localhost PRATHAMESH]# cd ..
[root@localhost ~]# vi LMN
[root@localhost ~]# cat LMN
This is the new file to demonstrate the vi command.
we are operating Linux Red Hat.


[root@localhost ~]# cd PRATHAMESH
[root@localhost PRATHAMESH]# vi LMN
[root@localhost PRATHAMESH]# cat LMN
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# vi GOD
[root@localhost PRATHAMESH]# cat GOD
This is the second file to be appended to the
first file created tin the same directory.
[root@localhost PRATHAMESH]# cat LMN GOD
Hello ,this the new file in the 
recently created directory PRATHAMESH.
This is the second file to be appended to the
first file created tin the same directory.
[root@localhost PRATHAMESH]# echo LMN
LMN
[root@localhost PRATHAMESH]# man echo
[root@localhost PRATHAMESH]# cp LMN PRATHAMESH
[root@localhost PRATHAMESH]# y
bash: y: command not found
[root@localhost PRATHAMESH]# cat PRATHAMESH
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# pwd
/root/PRATHAMESH
[root@localhost PRATHAMESH]# ls PRATHAMESH
PRATHAMESH
[root@localhost PRATHAMESH]# mv LMN PRATHAMESH
mv: overwrite `PRATHAMESH'? y
[root@localhost PRATHAMESH]# cat PRATHAMESH
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# ls PRATHAMESH
PRATHAMESH
[root@localhost PRATHAMESH]# ls
GOD  PRATHAMESH
[root@localhost PRATHAMESH]# mv PRATHAMESH LMN
[root@localhost PRATHAMESH]# y
bash: y: command not found
[root@localhost PRATHAMESH]# cat LMN
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# ls PRATHAMESH
ls: PRATHAMESH: No such file or directory
[root@localhost PRATHAMESH]# ls
GOD  LMN
[root@localhost PRATHAMESH]# clear

[root@localhost PRATHAMESH]# cd..
bash: cd..: command not found
[root@localhost PRATHAMESH]# clear


[root@localhost PRATHAMESH]# useradd SAM
[root@localhost PRATHAMESH]# passwd SAM
Changing password for user SAM.
New UNIX password: 
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password: 
Sorry, passwords do not match.
New UNIX password: 
New UNIX password: 
passwd: Authentication information cannot be recovered
[root@localhost PRATHAMESH]# :wq
bash: :wq: command not found
[root@localhost PRATHAMESH]# clear


[root@localhost PRATHAMESH]# cd ..
[root@localhost ~]# useradd SAM
useradd: user SAM exists
[root@localhost ~]# passwd SAM
Changing password for user SAM.
New UNIX password: 
Retype new UNIX password: 
Sorry, passwords do not match.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# clear


[root@localhost ~]# useradd BOY
[root@localhost ~]# passwd BOY
Changing password for user BOY.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# clear


[root@localhost ~]# useradd HAT 
[root@localhost ~]# passwd Hat
passwd: Unknown user name 'Hat'.
[root@localhost ~]# 123
bash: 123: command not found
[root@localhost ~]# 123
bash: 123: command not found
[root@localhost ~]# clear


[root@localhost ~]# useradd client
[root@localhost ~]# passwd client
Changing password for user client.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# clear



[root@localhost ~]# useradd client
useradd: user client exists
[root@localhost ~]# passwd client
Changing password for user client.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# ls-l
bash: ls-l: command not found
[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-r--r-- 1 root root    85 Jul 23 11:23 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# ;wq
bash: syntax error near unexpected token `;'
[root@localhost ~]# clear

[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-r--r-- 1 root root    85 Jul 23 11:23 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# vi LMN
[root@localhost ~]# chmod g+rw LMN
[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-rw-r-- 1 root root    85 Jul 23 11:54 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# chmod g+rwx LMN
[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-rwxr-- 1 root root    85 Jul 23 11:54 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# 

[root@localhost ~]# mkdir PRATHAMESH
[root@localhost ~]# cd PRATHAMESH
[root@localhost PRATHAMESH]# cd ..
[root@localhost ~]# vi LMN
[root@localhost ~]# cat LMN
This is the new file to demonstrate the vi command.
we are operating Linux Red Hat.

[root@localhost ~]# cd PRATHAMESH
[root@localhost PRATHAMESH]# vi LMN
[root@localhost PRATHAMESH]# cat LMN
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# vi GOD
[root@localhost PRATHAMESH]# cat GOD
This is the second file to be appended to the
first file created tin the same directory.
[root@localhost PRATHAMESH]# cat LMN GOD
Hello ,this the new file in the 
recently created directory PRATHAMESH.
This is the second file to be appended to the
first file created tin the same directory.
[root@localhost PRATHAMESH]# echo LMN
LMN
[root@localhost PRATHAMESH]# man echo
[root@localhost PRATHAMESH]# cp LMN PRATHAMESH
[root@localhost PRATHAMESH]# y
bash: y: command not found
[root@localhost PRATHAMESH]# cat PRATHAMESH
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# pwd
/root/PRATHAMESH
[root@localhost PRATHAMESH]# ls PRATHAMESH
PRATHAMESH
[root@localhost PRATHAMESH]# mv LMN PRATHAMESH
mv: overwrite `PRATHAMESH'? y
[root@localhost PRATHAMESH]# cat PRATHAMESH
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# ls PRATHAMESH
PRATHAMESH
[root@localhost PRATHAMESH]# ls
GOD  PRATHAMESH
[root@localhost PRATHAMESH]# mv PRATHAMESH LMN
[root@localhost PRATHAMESH]# y
bash: y: command not found
[root@localhost PRATHAMESH]# cat LMN
Hello ,this the new file in the 
recently created directory PRATHAMESH.
[root@localhost PRATHAMESH]# ls PRATHAMESH
ls: PRATHAMESH: No such file or directory
[root@localhost PRATHAMESH]# ls
GOD  LMN
[root@localhost PRATHAMESH]# clear

[root@localhost PRATHAMESH]# cd..
bash: cd..: command not found
[root@localhost PRATHAMESH]# clear


[root@localhost PRATHAMESH]# useradd SAM
[root@localhost PRATHAMESH]# passwd SAM
Changing password for user SAM.
New UNIX password: 
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password: 
Sorry, passwords do not match.
New UNIX password: 
New UNIX password: 
passwd: Authentication information cannot be recovered
[root@localhost PRATHAMESH]# :wq
bash: :wq: command not found
[root@localhost PRATHAMESH]# clear


[root@localhost PRATHAMESH]# cd ..
[root@localhost ~]# useradd SAM
useradd: user SAM exists
[root@localhost ~]# passwd SAM
Changing password for user SAM.
New UNIX password: 
Retype new UNIX password: 
Sorry, passwords do not match.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# clear


[root@localhost ~]# useradd BOY
[root@localhost ~]# passwd BOY
Changing password for user BOY.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# clear


[root@localhost ~]# useradd HAT 
[root@localhost ~]# passwd Hat
passwd: Unknown user name 'Hat'.
[root@localhost ~]# 123
bash: 123: command not found
[root@localhost ~]# 123
bash: 123: command not found
[root@localhost ~]# clear


[root@localhost ~]# useradd client
[root@localhost ~]# passwd client
Changing password for user client.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# clear



[root@localhost ~]# useradd client
useradd: user client exists
[root@localhost ~]# passwd client
Changing password for user client.
New UNIX password: 
BAD PASSWORD: it is WAY too short
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]# ls-l
bash: ls-l: command not found
[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-r--r-- 1 root root    85 Jul 23 11:23 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# ;wq
bash: syntax error near unexpected token `;'
[root@localhost ~]# clear

[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-r--r-- 1 root root    85 Jul 23 11:23 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# vi LMN
[root@localhost ~]# chmod g+rw LMN
[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-rw-r-- 1 root root    85 Jul 23 11:54 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# chmod g+rwx LMN
[root@localhost ~]# ls -l
total 324
-rw------- 1 root root     0 Feb 13 14:33 ab
-rw-r--r-- 1 root root     0 Feb 13 14:30 abc
-rw-r--r-- 1 root root    88 Jul 16 11:46 ABC
-rw------- 1 root root  4587 Jul 18  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 Jul 23 11:16 ANS
-rw-r--r-- 1 root root     0 Mar 23 11:15 a.out
drwxr-xr-x 3 root root  4096 Mar 23 11:59 Desktop
-rw-r--r-- 1 root root    88 Feb 10 11:39 input.asm
-rw-r--r-- 1 root root 59315 Jul 18  2014 install.log
-rw-r--r-- 1 root root  8740 Jul 18  2014 install.log.syslog
-rw-r--r-- 1 root root 36290 Jan 22 11:31 lex.yy.c
-rw-rwxr-- 1 root root    85 Jul 23 11:54 LMN
-rw------- 1 root root     0 Feb 13 13:52 npl
-rw-r--r-- 1 root root  1030 Feb 10 12:33 p1.php~
-rw-r--r-- 1 root root   172 Jul 16 11:37 PQR
drwxr-xr-x 2 root root  4096 Feb 13 14:50 pra
-rw-r--r-- 1 root root     0 Feb 13 14:33 prachi
-rw------- 1 root root     0 Feb 13 14:30 prajakta
-rwxr-xr-x 1 root root 15764 Jan 22 11:31 spcc1
-rw-r--r-- 1 root root   167 Jan 22 11:03 spcc1.l
-rw-r--r-- 1 root root   167 Jan 22 11:00 spcc1.l~
-rw-r--r-- 1 root root   305 Jan 22 11:30 spcc1.y
-rw-r--r-- 1 root root   304 Jan 22 11:30 spcc1.y~
-rw-r--r-- 1 root root   293 Jan 22 11:19 spcc2.y
-rw-r--r-- 1 root root   296 Jan 22 11:18 spcc2.y~
-rwxr-xr-x 1 root root   538 Mar 23 12:06 testshell
-rw-r--r-- 1 root root   558 Mar 23 12:06 testshell.o
-rw-r--r-- 1 root root   500 Mar 23 12:06 testshell.s
-rw-r--r-- 1 root root   500 Mar 23 12:01 testshell.s~
drwxr-xr-x 2 root root  4096 Feb 13 13:52 untitled folder
drwxr-xr-x 2 root root  4096 Jul 23 11:39 PRATHAMESH
-rw-r--r-- 1 root root 10378 Jan 22 11:31 y.tab.c
-rw-r--r-- 1 root root    64 Jan 22 11:31 y.tab.h
[root@localhost ~]# 


Comments

Popular posts from this blog

Intermediate Code Generation > C Program