Skip to content

Instantly share code, notes, and snippets.

@singh011
singh011 / Dharmendra_CLI_Drills_I
Created November 2, 2020 09:57
Dharmendra_CLI_Drills_I
Q1. Create the following directory structure. (Create empty files where necessary)
Solution:-
:~$ mkdir hello
:~$ mkdir hello/five hello/one
:~$ cd hello
:~/hello$ ls
five one
:~/hello$ mkdir five/six
:~/hello/five$ ls
@singh011
singh011 / Dharmendra_CLI_Drills_II
Last active November 10, 2020 17:08
Dharmendra_CLI_Drills_II
Pipes---
1.Download the contents of "Harry Potter and the Goblet of fire" using the command line from here
wget https://raw.githubusercontent.com/bobdeng/owlreader/master/ERead/assets/books/Harry%20Potter%20and%20the%20Goblet%20of%20Fire.txt
1. Print the first three lines in the book
head -3 harry.txt
2.Print the last 10 lines in the book
tail -10 harry.txt