0% found this document useful (0 votes)
12 views1 page

201305600

Uploaded by

Sumit Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

201305600

Uploaded by

Sumit Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.(a) --> touch 1a.

txt
--> chmod 644 1a.txt
1.(b) --> touch 1b.txt
--> chmod 740 1b.txt
1.(c) --> touch 1c.txt
--> chmod 440 1c.txt
1.(d) --> touch 1d.txt
--> chmod 000 1d.txt

2. --> sudo groupadd group1


--> sudo useradd -g group1 user1
--> touch 2.txt
--> chmod 400 2.txt
--> sudo chown user1 2.txt
--> cat 2.txt

3. --> ssh sumit.mishra@web.iiit.ac.in


--> cat > 3.txt
--> 201305600
--> Ctrl+d
--> logout
--> scp -p sumit.mishra@web.iiit.ac.in:3.txt .
--> cat >> 3.txt
--> Sumit Mishra
--> Ctrl+d
--> scp -p 3.txt sumit.mishra@web.iiit.ac.in:3.txt

4. --> vim 4.txt


--> cat >> 4.txt

5. --> cat > 5a.txt


--> cat 5a.txt 5b.txt > 5o.txt 2> 5e.txt

6. --> cat > 6a.txt


--> head -15 6a.txt | tail -9 > 6b.txt

7. --> wc -l 6a.txt
--> split -l 10 6a.txt

8. --> sort -g -r 6a.txt > 8.txt

9. --> ls -lS | head -5 | awk { 'print $9,$5,$8' } > 9.txt

10. --> ls -l | tee 10.txt

11. --> tr [a-z] [A-Z] <10.txt > 11.txt

12. --> sudo find / -name *passwd*

13. --> sudo tar -cvf sumit.tar *

You might also like