๐๐š๐ฏ๐ข๐ ๐š๐ญ๐ข๐ง๐  ๐š๐ง๐ ๐Œ๐š๐ง๐š๐ ๐ข๐ง๐  ๐ญ๐ก๐ž ๐‹๐ข๐ง๐ฎ๐ฑ ๐…๐ข๐ฅ๐ž ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ

meghasharmaaaa

Megha Sharma

Posted on October 4, 2024

๐๐š๐ฏ๐ข๐ ๐š๐ญ๐ข๐ง๐  ๐š๐ง๐ ๐Œ๐š๐ง๐š๐ ๐ข๐ง๐  ๐ญ๐ก๐ž ๐‹๐ข๐ง๐ฎ๐ฑ ๐…๐ข๐ฅ๐ž ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ

To navigate and manage the Linux file system, you can use a variety of commands. Here are some of the most commonly used ones:

  1. ๐ฉ๐ฐ๐ (๐๐ซ๐ข๐ง๐ญ ๐–๐จ๐ซ๐ค๐ข๐ง๐  ๐ƒ๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ):
    โ–ช Displays the current working directory.

  2. ๐ฅ๐ฌ (๐‹๐ข๐ฌ๐ญ):
    โ–ช Lists the contents of a directory.
    โ–ช Common options: -๐ฅ (long format), -๐š (include hidden files),-๐ก (human-readable sizes).

  3. ๐œ๐ (๐‚๐ก๐š๐ง๐ ๐ž ๐ƒ๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ):
    โ–ช Changes the current working directory.
    โ–ช Usage: ๐œ๐ [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ_๐ฉ๐š๐ญ๐ก].

  4. ๐ฆ๐ค๐๐ข๐ซ (๐Œ๐š๐ค๐ž ๐ƒ๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ):
    โ–ช Creates a new directory.
    โ–ช Usage: ๐ฆ๐ค๐๐ข๐ซ [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ_๐ง๐š๐ฆ๐ž].

  5. ๐ซ๐ฆ๐๐ข๐ซ (๐‘๐ž๐ฆ๐จ๐ฏ๐ž ๐ƒ๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ):
    โ–ช Deletes an empty directory.
    โ–ช Usage: ๐ซ๐ฆ๐๐ข๐ซ [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ_๐ง๐š๐ฆ๐ž].

  6. ๐ญ๐จ๐ฎ๐œ๐ก:
    โ–ช Creates an empty file or updates the access/modification timestamp of an existing file.

  7. ๐œ๐ฉ (๐‚๐จ๐ฉ๐ฒ):
    โ–ช Copies files or directories.
    โ–ช Usage: ๐œ๐ฉ [๐ฌ๐จ๐ฎ๐ซ๐œ๐ž] [๐๐ž๐ฌ๐ญ๐ข๐ง๐š๐ญ๐ข๐จ๐ง].

  8. ๐ฆ๐ฏ (๐Œ๐จ๐ฏ๐ž):
    โ–ช Moves or renames files or directories.
    โ–ช Usage: ๐ฆ๐ฏ [๐ฌ๐จ๐ฎ๐ซ๐œ๐ž] [๐๐ž๐ฌ๐ญ๐ข๐ง๐š๐ญ๐ข๐จ๐ง].

  9. ๐ซ๐ฆ (๐‘๐ž๐ฆ๐จ๐ฏ๐ž):
    โ–ช Deletes files or directories.
    โ–ช Be cautious with this command, as itโ€™s irreversible.
    โ–ช Usage: ๐ซ๐ฆ [๐Ÿ๐ข๐ฅ๐ž/๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ].

  10. ๐Ÿ๐ข๐ง๐:
    โ–ช Searches for files and directories based on specified criteria.
    โ–ช Usage: ๐Ÿ๐ข๐ง๐ [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ] -๐ง๐š๐ฆ๐ž [๐Ÿ๐ข๐ฅ๐ž๐ง๐š๐ฆ๐ž].

  11. ๐ ๐ซ๐ž๐ฉ:
    โ–ช Searches for text patterns within files.
    โ–ช Usage: ๐ ๐ซ๐ž๐ฉ [๐ฉ๐š๐ญ๐ญ๐ž๐ซ๐ง] [๐Ÿ๐ข๐ฅ๐ž].

  12. ๐œ๐ก๐ฆ๐จ๐ (๐‚๐ก๐š๐ง๐ ๐ž ๐Œ๐จ๐๐ž):
    โ–ช Modifies file permissions.
    โ–ช Usage: ๐œ๐ก๐ฆ๐จ๐ [๐ฉ๐ž๐ซ๐ฆ๐ข๐ฌ๐ฌ๐ข๐จ๐ง๐ฌ] [๐Ÿ๐ข๐ฅ๐ž/๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ].

  13. ๐œ๐ก๐จ๐ฐ๐ง (๐‚๐ก๐š๐ง๐ ๐ž ๐Ž๐ฐ๐ง๐ž๐ซ):
    โ–ช Changes the owner of a file or directory.
    โ–ช Usage: ๐œ๐ก๐จ๐ฐ๐ง [๐ง๐ž๐ฐ_๐จ๐ฐ๐ง๐ž๐ซ] [๐Ÿ๐ข๐ฅ๐ž/๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ].

  14. ๐๐Ÿ (๐ƒ๐ข๐ฌ๐ค ๐…๐ซ๐ž๐ž):
    โ–ช Displays disk space usage.

  15. ๐๐ฎ (๐ƒ๐ข๐ฌ๐ค ๐”๐ฌ๐š๐ ๐ž):
    โ–ช Shows the disk usage of files and directories.

  16. ๐ฆ๐จ๐ฎ๐ง๐ญ:
    โ–ช Mounts a file system, such as a USB drive or network share, to a directory.

  17. ๐ฎ๐ฆ๐จ๐ฎ๐ง๐ญ (๐”๐ง๐ฆ๐จ๐ฎ๐ง๐ญ):
    โ–ช Detaches a mounted file system from a directory.

These are just some of the fundamental commands for managing the Linux file system. Familiarizing yourself with these commands is essential for efficiently navigating and maintaining a Linux system.

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
meghasharmaaaa
Megha Sharma

Posted on October 4, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About