Create three directories: dir1, dir2, dir3 inside your home directory. (Use tree to verify)

Run the following command to create three directories inside your home directory:

bashCopyEditmkdir ~/dir1 ~/dir2 ~/dir3

Step 2: Verify Using tree Command

bashCopyEdittree ~

Expected Output (partial):

arduinoCopyEdit/home/yourusername
├── dir1
├── dir2
└── dir3
  • If tree is not installed, install it using:

    • Ubuntu/Debian: sudo apt install tree

    • CentOS/RHEL: sudo yum install tree

    • macOS (Homebrew): brew install tree

0
Subscribe to my newsletter

Read articles from Ravi Vishwakarma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ravi Vishwakarma
Ravi Vishwakarma