Created
May 15, 2021 13:01
-
-
Save shriagnish2021/5f3bd2114f90b0498bb60e21f2183637 to your computer and use it in GitHub Desktop.
shri_CLI_Drills_I
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. | |
agnish@agnish-Inspiron-15-3567:~$ cd ~ | |
agnish@agnish-Inspiron-15-3567:~$ mkdir hello | |
agnish@agnish-Inspiron-15-3567:~$ cd hello | |
agnish@agnish-Inspiron-15-3567:~/hello$ mkdir five | |
agnish@agnish-Inspiron-15-3567:~/hello$ mkdir one | |
agnish@agnish-Inspiron-15-3567:~/hello$ cd five | |
agnish@agnish-Inspiron-15-3567:~/hello/five$ mkdir six | |
agnish@agnish-Inspiron-15-3567:~/hello/five$ cd six | |
agnish@agnish-Inspiron-15-3567:~/hello/five/six$ touch c.txt | |
agnish@agnish-Inspiron-15-3567:~/hello/five/six$ mkdir seven | |
agnish@agnish-Inspiron-15-3567:~/hello/five/six$ cd seven | |
agnish@agnish-Inspiron-15-3567:~/hello/five/six/seven$ touch error.log | |
agnish@agnish-Inspiron-15-3567:~/hello/five/six/seven$ cd ../../../ | |
agnish@agnish-Inspiron-15-3567:~/hello$ cd one | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ touch a.txt b.txt | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ ls | |
a.txt b.txt | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ mkdir two | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ cd two | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two$ touch d.txt | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two$ mkdir three | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two$ cd three | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two/three$ touch e.txt | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two/three$ mkdir four | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two/three$ cd four | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two/three/four$ touch access.log | |
agnish@agnish-Inspiron-15-3567:~/hello/one/two/three/four$ ls | |
access.log | |
2. | |
agnish@agnish-Inspiron-15-3567:~$ cd ~ | |
agnish@agnish-Inspiron-15-3567:~$ cd hello | |
agnish@agnish-Inspiron-15-3567:~/hello$ rm five/six/seven/error.log | |
agnish@agnish-Inspiron-15-3567:~/hello$ ls five/six/seven | |
agnish@agnish-Inspiron-15-3567:~/hello$ rm one/two/three/four/access.log | |
agnish@agnish-Inspiron-15-3567:~/hello$ ls one/two/three/four | |
agnish@agnish-Inspiron-15-3567:~/hello$ ls one/two/three | |
e.txt four | |
agnish@agnish-Inspiron-15-3567:~/hello$ ls one/two/three/four | |
agnish@agnish-Inspiron-15-3567:~/hello$ | |
3. | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ cd ~ | |
agnish@agnish-Inspiron-15-3567:~$ cd hello/one | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ echo "Unix is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, development starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others." >> a.txt | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ cat a.txt | |
Unix is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, development starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others. | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ | |
4. | |
agnish@agnish-Inspiron-15-3567:~/hello/one$ cd ~ | |
agnish@agnish-Inspiron-15-3567:~$ rm -rf hello/five | |
agnish@agnish-Inspiron-15-3567:~$ ls | |
Desktop Downloads Music Public Templates | |
Documents hello Pictures snap Videos | |
agnish@agnish-Inspiron-15-3567:~$ cd hello | |
agnish@agnish-Inspiron-15-3567:~/hello$ ls | |
one | |
5. | |
agnish@agnish-Inspiron-15-3567:~/hello$ cd ~ | |
agnish@agnish-Inspiron-15-3567:~$ cd hello | |
agnish@agnish-Inspiron-15-3567:~/hello$ mv one uno | |
agnish@agnish-Inspiron-15-3567:~/hello$ ls | |
uno | |
6. | |
agnish@agnish-Inspiron-15-3567:~/hello/uno$ cd ~ | |
agnish@agnish-Inspiron-15-3567:~$ cd hello/uno | |
agnish@agnish-Inspiron-15-3567:~/hello/uno$ ls | |
a.txt b.txt two | |
agnish@agnish-Inspiron-15-3567:~/hello/uno$ mv a.txt two/ | |
agnish@agnish-Inspiron-15-3567:~/hello/uno$ ls | |
b.txt two | |
agnish@agnish-Inspiron-15-3567:~/hello/uno$ cd two | |
agnish@agnish-Inspiron-15-3567:~/hello/uno/two$ ls | |
a.txt d.txt three |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment