DEV Community

Cover image for ๐‡๐ž๐ซ๐ž ๐š๐ซ๐ž ๐ฌ๐จ๐ฆ๐ž ๐ฆ๐จ๐ซ๐ž ๐œ๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ ๐Ÿ๐จ๐ซ ๐ง๐š๐ฏ๐ข๐ ๐š๐ญ๐ข๐ง๐  ๐š๐ง๐ ๐ฆ๐š๐ง๐š๐ ๐ข๐ง๐  ๐ญ๐ก๐ž ๐‹๐ข๐ง๐ฎ๐ฑ ๐Ÿ๐ข๐ฅ๐ž ๐ฌ๐ฒ๐ฌ๐ญ๐ž๐ฆ:
Megha Sharma
Megha Sharma

Posted on

๐‡๐ž๐ซ๐ž ๐š๐ซ๐ž ๐ฌ๐จ๐ฆ๐ž ๐ฆ๐จ๐ซ๐ž ๐œ๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ ๐Ÿ๐จ๐ซ ๐ง๐š๐ฏ๐ข๐ ๐š๐ญ๐ข๐ง๐  ๐š๐ง๐ ๐ฆ๐š๐ง๐š๐ ๐ข๐ง๐  ๐ญ๐ก๐ž ๐‹๐ข๐ง๐ฎ๐ฑ ๐Ÿ๐ข๐ฅ๐ž ๐ฌ๐ฒ๐ฌ๐ญ๐ž๐ฆ:

  1. ๐ฅ๐ง(๐‹๐ข๐ง๐ค):
    โ€ข Creates hard or symbolic links to files.
    โ€ข Usage:
    โ€ข Hard link: ๐ฅ๐ง [๐ฌ๐จ๐ฎ๐ซ๐œ๐ž] [๐ฅ๐ข๐ง๐ค_๐ง๐š๐ฆ๐ž]
    โ€ข Symbolic link: ๐ฅ๐ง -๐ฌ [๐ฌ๐จ๐ฎ๐ซ๐œ๐ž] [๐ฅ๐ข๐ง๐ค_๐ง๐š๐ฆ๐ž]

  2. ๐œ๐š๐ญ(๐‚๐จ๐ง๐œ๐š๐ญ๐ž๐ง๐š๐ญ๐ž):
    โ€ข Displays the contents of a file.
    โ€ข Usage: ๐œ๐š๐ญ [๐Ÿ๐ข๐ฅ๐ž]

  3. ๐ฆ๐จ๐ซ๐ž ๐š๐ง๐ ๐ฅ๐ž๐ฌ๐ฌ:
    โ€ข Allows viewing text files one screen at a time.
    โ€ข Usage:
    โ€ข ๐ฆ๐จ๐ซ๐ž [๐Ÿ๐ข๐ฅ๐ž]
    โ€ข ๐ฅ๐ž๐ฌ๐ฌ [๐Ÿ๐ข๐ฅ๐ž]

  4. ๐ก๐ž๐š๐ ๐š๐ง๐ ๐ญ๐š๐ข๐ฅ:
    โ€ข Displays the beginning or end of a file.
    โ€ข Usage:
    โ€ข ๐ก๐ž๐š๐ [๐Ÿ๐ข๐ฅ๐ž]
    โ€ข ๐ญ๐š๐ข๐ฅ [๐Ÿ๐ข๐ฅ๐ž]

  5. ๐ž๐œ๐ก๐จ:
    โ€ข Prints text or variables to the terminal.
    โ€ข Usage: ๐ž๐œ๐ก๐จ [๐ญ๐ž๐ฑ๐ญ ๐จ๐ซ ๐ฏ๐š๐ซ๐ข๐š๐›๐ฅ๐ž]

  6. ๐ฆ๐ฏ(๐‘๐ž๐ง๐š๐ฆ๐ž):
    โ€ข Can be used to rename files and directories.
    โ€ข Usage: ๐ฆ๐ฏ [๐จ๐ฅ๐๐ง๐š๐ฆ๐ž][๐ง๐ž๐ฐ๐ง๐š๐ฆ๐ž]

  7. ๐œ๐ฉ(๐‘๐ž๐œ๐ฎ๐ซ๐ฌ๐ข๐ฏ๐ž):
    โ€ข Copies directories and their contents recursively.
    โ€ข Usage: ๐œ๐ฉ -๐ซ [๐ฌ๐จ๐ฎ๐ซ๐œ๐ž] [๐๐ž๐ฌ๐ญ๐ข๐ง๐š๐ญ๐ข๐จ๐ง]

  8. ๐Ÿ๐ข๐ง๐(๐ƒ๐ž๐ฅ๐ž๐ญ๐ž):
    โ€ข Finds files and directories and deletes them.
    โ€ข Usage: ๐Ÿ๐ข๐ง๐ [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ] -๐ง๐š๐ฆ๐ž [๐Ÿ๐ข๐ฅ๐ž๐ง๐š๐ฆ๐ž] -๐ž๐ฑ๐ž๐œ ๐ซ๐ฆ {} \;

  9. ๐๐ฎ(๐‡๐ฎ๐ฆ๐š๐ง ๐‘๐ž๐š๐๐š๐›๐ฅ๐ž):
    โ€ข Displays disk usage in a human-readable format.
    โ€ข Usage: ๐๐ฎ -๐ก [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ]

  10. ๐๐ฎ(๐’๐ฎ๐ฆ๐ฆ๐š๐ซ๐ข๐ณ๐ž):
    โ€ข Provides a summary of disk usage of each directory.
    โ€ข Usage: ๐๐ฎ -๐ก โ€” ๐ฆ๐š๐ฑ-๐๐ž๐ฉ๐ญ๐ก=1 [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ]

  11. ๐ญ๐š๐ซ(๐“๐š๐ฉ๐ž ๐€๐ซ๐œ๐ก๐ข๐ฏ๐ž):
    โ€ข Creates and manipulates archive files.
    โ€ข Usage:
    โ€ข Create a tar archive: ๐ญ๐š๐ซ -๐œ๐ฏ๐Ÿ [๐š๐ซ๐œ๐ก๐ข๐ฏ๐ž_๐ง๐š๐ฆ๐ž.๐ญ๐š๐ซ] [๐๐ข๐ซ๐ž๐œ๐ญ๐จ๐ซ๐ฒ]
    โ€ข Extract from a tar archive: ๐ญ๐š๐ซ -๐ฑ๐ฏ๐Ÿ [๐š๐ซ๐œ๐ก๐ข๐ฏ๐ž_๐ง๐š๐ฆ๐ž.๐ญ๐š๐ซ]

These commands cover a broad range of tasks, from basic file manipulation to more advanced operations like process management and file compression. Always refer to the manual pages (๐ฆ๐š๐ง [๐œ๐จ๐ฆ๐ฆ๐š๐ง๐]) for detailed information about each command and its options.

Top comments (0)