Skip to main content

Command Palette

Search for a command to run...

Basic Linux Commands for DevOps

Published
1 min read

Day-to-day commands of Linux :

  1. pwd:- to check your present working directory (Current path of your file or directory)

  2. cd:- Change Directory

    ls:- List of files or directories present in the current path

    ll:- used to list information about files and directories.

    ls -a:- using this you can able to see hidden files too.

  3. mkdir:- to create a new directory

  4. touch:- this will create an empty file.

    vi:- you can create the file and able to modify it.

    vim:- you can create the file and able to modify it.

    cat > filename:- Using this you can create files and able to add content too but you can't modify the data which is present in that file. If you are using this command 2nd time for the same file this will override the data and will display new content which you are written 2nd time.

    cat >> filename:- Using this you will able to add content to the file.

  5. rm:- to remove file or directory.

  6. cp:- cp command is used to copy files or directories.

    The syntax for Copy: cp <option> <source> <destination>

    where the option is "-r" recursive

    "-v" verbose

    "-f" forcefully

More from this blog

Nilesh Ganvir

34 posts