Basics linux command

Basics linux command

What is Linux?

LINUX is an open-source operating system (OS). It is based on UNIX. linux is know for security, stability, performance, flexibility, software updates, GUI like command line, networking, installation etc.

There are many different distributions (one type of versions), each with its own unique features and capabilities. That distributions like Ubuntu, CentOs, Red Hat, debian.

Task: What is the linux command to

1 . Check your present working directory.

Before diving into any file or directory operations, it's crucial to know where you are within the Linux file system. To check your present working directory, simply use the pwd command.

pwd

This command will display the full path of the directory you are currently in. It's a handy way to orient yourself within the file system.

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

To list all files and directories in your current location, including hidden ones, you can use the ls command with the -a option.

"ls -a" command is used to list detailed information about files and directories, it shows hidden files and directories also.

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

Creating nested directories in Linux is straightforward. You can use the mkdir command along with the -p option to create a nested directory structure in one go. Let's say you want to create a directory structure like A/B/C/D/E.

mkdir -p A/B/C/D/E "

Using mkdir -p command to ensure that parent directories are created as needed.




要查看或添加评论,请登录

Mamta Kumari的更多文章

  • Basic Linux Shell Scripting for DevOps

    Basic Linux Shell Scripting for DevOps

    Tasks 1 . Explain in your own words and examples, what is Shell Scripting for DevOps.

  • Task: Basic Linux Commands

    Task: Basic Linux Commands

    In this article, we'll explore fundamental Linux commands frequently used in everyday tasks involving Linux as the…

  • DevOps

    DevOps

    What is DevOps? DevOps is a software development methodology that accelerates the delivery of higher-quality…

社区洞察

其他会员也浏览了