To navigate and manage the Linux file system, you can use a variety of commands. Here are some of the most commonly used ones:
๐ฉ๐ฐ๐ (๐๐ซ๐ข๐ง๐ญ ๐๐จ๐ซ๐ค๐ข๐ง๐ ๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ):
โช Displays the current working directory.๐ฅ๐ฌ (๐๐ข๐ฌ๐ญ):
โช Lists the contents of a directory.
โช Common options: -๐ฅ (long format), -๐ (include hidden files),-๐ก
(human-readable sizes).๐๐ (๐๐ก๐๐ง๐ ๐ ๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ):
โช Changes the current working directory.
โช Usage: ๐๐ [๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ_๐ฉ๐๐ญ๐ก].๐ฆ๐ค๐๐ข๐ซ (๐๐๐ค๐ ๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ):
โช Creates a new directory.
โช Usage: ๐ฆ๐ค๐๐ข๐ซ [๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ_๐ง๐๐ฆ๐].๐ซ๐ฆ๐๐ข๐ซ (๐๐๐ฆ๐จ๐ฏ๐ ๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ):
โช Deletes an empty directory.
โช Usage: ๐ซ๐ฆ๐๐ข๐ซ [๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ_๐ง๐๐ฆ๐].๐ญ๐จ๐ฎ๐๐ก:
โช Creates an empty file or updates the access/modification timestamp of an existing file.๐๐ฉ (๐๐จ๐ฉ๐ฒ):
โช Copies files or directories.
โช Usage: ๐๐ฉ [๐ฌ๐จ๐ฎ๐ซ๐๐] [๐๐๐ฌ๐ญ๐ข๐ง๐๐ญ๐ข๐จ๐ง].๐ฆ๐ฏ (๐๐จ๐ฏ๐):
โช Moves or renames files or directories.
โช Usage: ๐ฆ๐ฏ [๐ฌ๐จ๐ฎ๐ซ๐๐] [๐๐๐ฌ๐ญ๐ข๐ง๐๐ญ๐ข๐จ๐ง].๐ซ๐ฆ (๐๐๐ฆ๐จ๐ฏ๐):
โช Deletes files or directories.
โช Be cautious with this command, as itโs irreversible.
โช Usage: ๐ซ๐ฆ [๐๐ข๐ฅ๐/๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ].๐๐ข๐ง๐:
โช Searches for files and directories based on specified criteria.
โช Usage: ๐๐ข๐ง๐ [๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ] -๐ง๐๐ฆ๐ [๐๐ข๐ฅ๐๐ง๐๐ฆ๐].๐ ๐ซ๐๐ฉ:
โช Searches for text patterns within files.
โช Usage: ๐ ๐ซ๐๐ฉ [๐ฉ๐๐ญ๐ญ๐๐ซ๐ง] [๐๐ข๐ฅ๐].๐๐ก๐ฆ๐จ๐ (๐๐ก๐๐ง๐ ๐ ๐๐จ๐๐):
โช Modifies file permissions.
โช Usage: ๐๐ก๐ฆ๐จ๐ [๐ฉ๐๐ซ๐ฆ๐ข๐ฌ๐ฌ๐ข๐จ๐ง๐ฌ] [๐๐ข๐ฅ๐/๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ].๐๐ก๐จ๐ฐ๐ง (๐๐ก๐๐ง๐ ๐ ๐๐ฐ๐ง๐๐ซ):
โช Changes the owner of a file or directory.
โช Usage: ๐๐ก๐จ๐ฐ๐ง [๐ง๐๐ฐ_๐จ๐ฐ๐ง๐๐ซ] [๐๐ข๐ฅ๐/๐๐ข๐ซ๐๐๐ญ๐จ๐ซ๐ฒ].๐๐ (๐๐ข๐ฌ๐ค ๐ ๐ซ๐๐):
โช Displays disk space usage.๐๐ฎ (๐๐ข๐ฌ๐ค ๐๐ฌ๐๐ ๐):
โช Shows the disk usage of files and directories.๐ฆ๐จ๐ฎ๐ง๐ญ:
โช Mounts a file system, such as a USB drive or network share, to a directory.๐ฎ๐ฆ๐จ๐ฎ๐ง๐ญ (๐๐ง๐ฆ๐จ๐ฎ๐ง๐ญ):
โช 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.
Top comments (0)