Skip to main content

Command Palette

Search for a command to run...

Day 2 Task: Basics linux command

Published
1 min readView as Markdown
Day 2 Task: Basics linux command

1.PWD("print working directory")

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

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 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.

3.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 allows you to create parent directories if they don't exist.

THANK YOU FOR READING!

Do follow me on LinkedIn for further blogs.

linkedin.com/in/manasa-j-03b633238