Day 2 Task: Basics Linux Command

Nithin PNithin P
1 min read

Table of contents

The pwd command is a commonly used command in Unix-based operating system, including Linux. "pwd" stands for "print working directory."when you run the pwd command,it display the full path of the current directory you are in.

ubuntu@ip-172-31-89-235:~$ pwd

/home/ubuntu

2.List all the files or directories including hidden files.

To list all files and directories, including hidden files, you can use the ls command with the -a option. The -a option stands for "all" and it includes all the files and directories, including those whose names start with a dot (which indicates they are hidden files or directories).

This will display a list of files and directories in the current directory,including any hidden files or directories.Each entry will be shown with its name.

  1. Creating a nested directory A/B/C/D/E

    To create a nested directory structure A/B/C/D/E, you can use the mkdir command with the -p option. The -p option allow you to create parent directories if they don't exit.

    THANK YOU FOR READING!

    Do follow me on LinkedIn for further blogs.

0
Subscribe to my newsletter

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

Written by

Nithin P
Nithin P