๐๐๐ฏ๐ข๐ ๐๐ญ๐ข๐ง๐ ๐๐ง๐ ๐๐๐ง๐๐ ๐ข๐ง๐ ๐ญ๐ก๐ ๐๐ข๐ง๐ฎ๐ฑ ๐ ๐ข๐ฅ๐ ๐๐ฒ๐ฌ๐ญ๐๐ฆ
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.