Day 2 Task: Basics Linux command

Day 2 Task: Basics Linux command

Day 2/90 lets build our skills with the Linux Fundamental.......!!!

Table of contents

#90daysofdevops #LinuxFundamentals Shubham Londhe

#Devops #2/90 Days......

- Best Beginner Guide with Hands-On task

TABLE OF CONTENTS

  1. Check your present Working directory.

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

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

-> Let's First understand what is Linux :

Think like this OS is like a car engine, without engine car won't work, Likewise without OS hardware and software won't be able to work.

it will just be pieces of scrap material.........!!!

Linux is a free and open-source operating system based on the family of the Linux Kernel. Operating systems based on Linux are known as Linux distribution.

Ex. Debian, Ubuntu, Fedora, CentOS, Kali Linux, Arch Linux and many...

The Linux operating system's architecture mainly contains the following components: the kernel, system library, hardware layer, system, and shell utility.

Linux Architecture

Linux File System Hierarchy

In Linux everything is represented as a file including a hardware program, the files are stored in a directory, and every directory contains a file with a tree structure. that is called file system hierarchy.

Basic Linux Commands:

ls -> List all files, Directories, and executable files.

ls -a -> List all files along with hidden files and files with names beginning with a dot.

ls -R -> List all files in a subdirectory or nested directory.

ls *.sh --> list all the files having .sh extension.

ls -d */ --> list only directories.(we can also specify a pattern)

cd or cd ~ -> for changing the directory ex.: cd .. change directory, cd home/ open the home directory

cat, $ cat > newfile-> It can be used to create a file, display the content of the file, copy the content of one file to another file $cat [filename-whose-content-is-to-be-copied] > destination-filename, and more.

touch -> for creating empty files

mkdir -> to make a new directory

cp -> To copy files cp source_file Destination_file, if the command has one or more arguments command will be:

cp Src_file1 Src_file2 Src_file3 Dest_directory

mv -> mv is used to move one or more files or directories from one place to another in a file system.

rm -> to remove the files

pwd -> print the present working directory

cd path-to-directory -> change the directory to the provided particular path

cd - -> Go to the last working directory

cd ../.. -> change directory to 2 levels back

Day 2 Task:-

  1. Check your present working directory

  1. List all the files or directories, including hidden files.

  2. Create a nested directory A/B/C/D

command used: mkdir -p A/B/C/D

  1. Make multiple directories at the same time

  2. List all the nested directory

    Do share your thoughts about the blog it will help me to improve further more...........!!!!!!!!!

    https://www.linkedin.com/in/ankush-aglawe/

    https://twitter.com/ankush738937704

    #Linux #90dayofdevops #90daysofdevopsChallenge Shubham Londhe