linux commands

Linux commands


Here is a list of basic linux commands. It should help a beginner and intermediate linux administrator or linux user. We have included simple examples for almost all linux commands to show how the actual commands works in a linux platform.


A

  • alias - creates an alias that is a 'shortcut' for a command.
  • apropos searches system commands for a given keywords and displays the result on the standard output.
  • at command executes or edit commands scheduled for a later time

      B

      • bc - An arbitrary precision calculator language

      C

      • cal - displays a calendar
      • cat  - concatenate files and print on the standard output
      • cd - To change the current directory.
      • chgrp - change group ownership
      • chmod - change file access permissions
      • cksum - checksum and count the bytes in a file
      • cp - copy files and directories
      • csplit - split a file into sections determined by context lines

      D

      • date - print or set the system date and time
      • dd  convert and copy a file
      • du - estimate file space usage
      E

      • egrep - print lines matching a pattern
      • export - set an environment variable

      F

      • fgrep - print lines matching a pattern
      • find - search for files in a directory hierarchy
      • fold - wrap each input line to fit in specified width

      G

      • grep - print lines matching a pattern

      H

      • head - output the first part of files

      I

      • ifconfig - view information about the configured network interfaces

        J

        • join - join lines of two files on a common field
        L

        • logrotate - rotates, compresses, and mails system logs
        • ls List contents of directories.

        M

        • mkdir - To create a new directory
        • mv - move (rename) files
        • mount - mount a file system

        N

        • nl - number lines of files
        O

        • od - dump files in octal and other formats

        P

        • pwd Print the full directory path of the current working directory.
        R

        • rgrep - print lines matching a pattern
        • rm - remove files or directories
        S

        • scp - secure copy (remote file copy program)
        • ssh - OpenSSH SSH client (remote login program)

        T

        • tail - output the last part of file.
        • tar - the GNU version f the tar archiving utility.
        • tee - read from standard input and write to standard output and files.
        • time - run programs and summarize system resource usage.
        • touch - change file time stamps

            V

            • vim - Vi IMproved, a programmers text editor

            W

            • watch - execute a program periodically, showing output fullscreen
            • wc - print newline, word, and byte counts for each file
            • whoami  - print effective userid

            Y


            • yes
               - output a string repeatedly until killed