Skip to content

Instantly share code, notes, and snippets.

@sidanand67
Last active June 29, 2022 09:30
Show Gist options
  • Save sidanand67/2e246f31ba101f155b017afa8d5c1607 to your computer and use it in GitHub Desktop.
Save sidanand67/2e246f31ba101f155b017afa8d5c1607 to your computer and use it in GitHub Desktop.
Sidharth_CLI_Drills_I
# Question 1
mkdir hello
cd hello
mkdir five one
cd five
mkdir six
cd six
touch c.txt
mkdir seven
cd seven
touch error.log
cd ../../../one
touch a.txt b.txt
mkdir two
cd two
touch d.txt
mkdir three
cd three
touch e.txt
mkdir four
cd four
touch access.log
# Question 2
cd ../../../../
find . -name "*.log" -delete
# Question 3
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." > one/a.txt
# Question 4
rm -rf five
# Question 5
mv one uno
# Question 6
mv uno/a.txt uno/two/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment