Skip to main content

Command Palette

Search for a command to run...

#90daysofDevOps ( Day 3 )

Published
β€’3 min readβ€’View as Markdown
#90daysofDevOps ( Day 3 )

πŸ§πŸ’Ό Mastering Linux Command Basics: Essential Skills for Tech Professionals πŸ’ΌπŸ§

In the IT profession, Linux commands are a cornerstone of competence. Regardless of your level of expertise, the mastery of fundamental commands is non-negotiable. Allow me to introduce you to some essential commands to kickstart your Linux proficiency:

  1. mkdir : mkdir in Linux is a command to create new directories or folders in the file system.

  2. ls : ls is a Linux command used to list the contents of a directory, displaying files and subdirectories.

  1. touch : touch is a Linux command used to create new, empty files or update the timestamps of existing files.

  2. pwd : pwd is a Linux command that stands for "print working directory" and is used to display the current directory path.

  3. mkdir -p : mkdir -p is a Linux command used to create a directory and its parent directories if they don't already exist, ensuring the desired directory structure is created.

  4. history : history is a Linux command that displays a list of previously executed commands in the terminal, helping users review and reuse command history.

  5. echo : echo is a Linux command used to display text or variables to the terminal or to redirect output to a file.

  6. head : head is a Linux command used to display the beginning or top part of a text file or output, typically the first 10 lines by default.

  7. tail : tail is a Linux command used to display the end or bottom part of a text file or output, typically the last 10 lines by default.

  8. useradd -m : useradd -m is a Linux command used to create a new user account with the -m option, which ensures that a home directory is created for the user if it doesn't already exist.

  9. sudo : sudo is a Linux command that allows authorized users to execute commands with administrative privileges, providing superuser capabilities to perform system tasks.

  10. userdel -r : userdel -r is a Linux command used to delete a user account and remove their home directory (along with its contents) with the -r option.

  11. passwd : passwd is a Linux command used to change or set the password for a user account, enhancing system security.

  12. su : su is a Linux command that stands for "switch user" and is used to switch to a different user account, typically the root (superuser) account, after entering the user's password.

  13. exit : exit is a Linux command used to close the current shell or terminal session, logging the user out if used in the login shell.

  14. whoami : whoami is a Linux command that displays the username of the currently logged-in user.

  15. diff : diff is a Linux command used to compare and display the differences between two text files, indicating the lines that vary between them.

Shubham Londhe

#90daysofDevOps

More from this blog

Bharat's blog

15 posts