Top 50+ Linux Commands You MUST Know

Table of contents

Linux Commands

  • whoami - display effective user id

  • man, apropos, whatis– display online manual documentation pages

  • clear - clear the terminal screen

  • pwd (present working directory) – return working directory name

  • ls – list directory contents

  • cd && cd.. - you can move into any folder using the cd command

  • mkdir – make directories

  • touch – change file access and modification times and creating the new files

  • rmdir – remove empty directories

  • rm, unlink – remove directory entries

  • open – open files and directories

  • mv – move files

  • cp – copy files

  • head – display first lines of a file

  • tail – display the last part of a file

  • date – display or set date and time

  • > - output redirection operator used for overwriting files that already exist in the directory
    >> - this one is also output operator, but, it appends the data of an existing fil
    
  • cat – concatenate and print files

  • less && more - allows backward movement in the file as well as forward movement

  • echo – write arguments to the standard output

  • wc – word, line, character, and byte count

  • pipe - pipe is a form of redirection (transfer of standard output to some other destination) that is used in Linux and other Unix-like operating systems to send the output of one command/program/process to another command/program/process for further processing

  • sort – sort or merge records (lines) of text and binary files

  • uniq – report or filter out repeated lines in a file

  • expansions

  • diff – differential file and directory comparator

  • find – walk a file hierarchy

  • grep - The grep utility searches any given input files, selecting lines that match one or more patterns. By default, a pattern matches an input line if the regular expression (RE) in the pattern matches the input line without its trailing newline. An empty expression matches every line. Each input line that matches at least one of the patterns is written to the standard output. in short, search anything within a file

  • du – display disk usage statistics

  • df – display free disk space

  • history - used to view the previously executed command

  • ps – process status

  • top – display sorted information about processes

  • kill – terminate or signal a process

  • killall – kill processes by name

  • jobs, bg and fg

  • sleep – suspend execution for an interval of time

  • gzip, gunzip, zcat – compression/decompression tool using Lempel-Ziv coding

  • tar – manipulate tape archives

  • nano - simple text editor in the style of the Alpine Composer

  • alias - shortcut that references a command

  • xargs – construct argument list(s) and execute utility

  • ln, link – link files

  • hard links and soft links

  • who – display who is on the system

  • su – substitute user identity

  • sudo, sudoedit - execute a command as another user

  • passwd – modify a user's password

  • chown – change file owner and group

  • chmod – change file modes or Access Control Lists

  • file permissions

  • cal, ncal– displays a calendar and the date of Easter

for detail information about each command you can visit : linux-commands-handbook

Happy Coding 🎊🍾

Did you find this article valuable?

Support Bhalala Mihir by becoming a sponsor. Any amount is appreciated!