Basic Linux Commands

Basic Linux Commands

Table of contents

No heading

No headings in the article.

#90DaysofDevops - Day 2 Challenge

Task: What is the Linux command to

  1. Check your present working directory.

    pwd - It is the command used for checking the present working directory.

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

    ls -a - Command for listing files including hidden ones.

  3. Create a nested directory A/B/C/D/E

    mkdir -p A/B/C/D/E - Command for nested directory

Additional Commands

1. cd ../.. - Going two levels back

  1. mkdir B C D - Making multiple directories

3. ls - i - List the files with index numbers

4) ls -d */ - List only the directories