Skip to content

Instantly share code, notes, and snippets.

@Qiamast
Last active February 4, 2023 16:56
Show Gist options
  • Save Qiamast/c99148e40a9a0201581c755b38be3be9 to your computer and use it in GitHub Desktop.
Save Qiamast/c99148e40a9a0201581c755b38be3be9 to your computer and use it in GitHub Desktop.
Most Commonly Used Commands.md

Most Commonly Used Commands

Linux

  1. ls (List directory contents)

    • Usage: ls [OPTION]... [DIRECTORY]
    • Description: This command lists the contents of a directory, including files and subdirectories. The option can be used to specify various display and sorting options.
  2. cd (Change directory)

    • Usage: cd [DIRECTORY]
    • Description: This command changes the current working directory to the specified directory. If no directory is specified, it changes to the user's home directory.
  3. pwd (Print working directory)

    • Usage: pwd
    • Description: This command prints the current working directory to the console.

Windows

  1. dir (List directory contents)

    • Usage: dir [OPTION]... [DIRECTORY]
    • Description: This command lists the contents of a directory, including files and subdirectories. The option can be used to specify various display and sorting options.
  2. cd (Change directory)

    • Usage: cd [DIRECTORY]
    • Description: This command changes the current working directory to the specified directory. If no directory is specified, it changes to the user's home directory.
  3. chdir (Change directory)

    • Usage: chdir [DIRECTORY]
    • Description: This command changes the current working directory to the specified directory. If no directory is specified, it changes to the user's home directory.

macOS

  1. ls (List directory contents)

    • Usage: ls [OPTION]... [DIRECTORY]
    • Description: This command lists the contents of a directory, including files and subdirectories. The option can be used to specify various display and sorting options.
  2. cd (Change directory)

    • Usage: cd [DIRECTORY]
    • Description: This command changes the current working directory to the specified directory. If no directory is specified, it changes to the user's home directory.
  3. pwd (Print working directory)

    • Usage: pwd
    • Description: This command prints the current working directory to the console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment