๐Ÿ”ฅ ๐”๐ง๐ฅ๐ž๐š๐ฌ๐ก ๐˜๐จ๐ฎ๐ซ ๐ƒ๐ž๐ฏ๐Ž๐ฉ๐ฌ ๐๐จ๐ญ๐ž๐ง๐ญ๐ข๐š๐ฅ: ๐„๐ฌ๐ฌ๐ž๐ง๐ญ๐ข๐š๐ฅ ๐‹๐ข๐ง๐ฎ๐ฑ ๐‚๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ ๐Œ๐š๐ฌ๐ญ๐ž๐ซ๐ฒ!
๐๐š๐ซ๐ญ-3๐Ÿš€

๐Ÿ”ฅ ๐”๐ง๐ฅ๐ž๐š๐ฌ๐ก ๐˜๐จ๐ฎ๐ซ ๐ƒ๐ž๐ฏ๐Ž๐ฉ๐ฌ ๐๐จ๐ญ๐ž๐ง๐ญ๐ข๐š๐ฅ: ๐„๐ฌ๐ฌ๐ž๐ง๐ญ๐ข๐š๐ฅ ๐‹๐ข๐ง๐ฎ๐ฑ ๐‚๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ ๐Œ๐š๐ฌ๐ญ๐ž๐ซ๐ฒ! ๐๐š๐ซ๐ญ-3๐Ÿš€

ยท

2 min read

Embark on the next phase of Linux command mastery for DevOps professionals! Delve deep into advanced commands and streamline your workflows. Let's elevate your DevOps game together๐Ÿš€

1. ๐„๐œ๐ก๐จ (๐ž๐œ๐ก๐จ):

The '๐ž๐œ๐ก๐จ' command displays the text passed in as an argument.

Example:
๐’†๐’„๐’‰๐’ <๐’•๐’†๐’™๐’•>

2. ๐Œ๐จ๐ฏ๐ž (๐ฆ๐ฏ):

The '๐ฆ๐ฏ' command is used to rename or move a directory or file.

To rename a file:
๐’Ž๐’— <๐’๐’๐’…_๐’๐’‚๐’Ž๐’†_๐’๐’‡_๐’‡๐’Š๐’๐’†> <๐’๐’†๐’˜_๐’๐’‚๐’Ž๐’†_๐’๐’‡_๐’‡๐’Š๐’๐’†>

To rename a folder:
๐’Ž๐’— <๐’๐’๐’…_๐’๐’‚๐’Ž๐’†_๐’๐’‡_๐’‡๐’๐’๐’…๐’†๐’“>/ <๐’๐’†๐’˜_๐’๐’‚๐’Ž๐’†_๐’๐’‡_๐’‡๐’๐’๐’…๐’†๐’“>

To move a file:
๐’Ž๐’— ๐’‡๐’Š๐’๐’†_๐’๐’‚๐’Ž๐’†.๐’•๐’™๐’• /๐’‘๐’‚๐’•๐’‰/๐’•๐’/๐’…๐’†๐’”๐’•๐’Š๐’๐’‚๐’•๐’Š๐’๐’

To move a folder:
๐’Ž๐’— ๐’‡๐’๐’๐’…๐’†๐’“_๐’๐’‚๐’Ž๐’† /๐’‘๐’‚๐’•๐’‰/๐’•๐’/๐’…๐’†๐’”๐’•๐’Š๐’๐’‚๐’•๐’Š๐’๐’/

3. ๐‚๐จ๐ฉ๐ฒ (๐œ๐ฉ):

Using the '๐œ๐ฉ' command, we copy a file in the Linux shell.

Example:
๐’„๐’‘ <๐’”๐’๐’–๐’“๐’„๐’†> <๐’…๐’†๐’”๐’•๐’Š๐’๐’‚๐’•๐’Š๐’๐’>

4. ๐ƒ๐ข๐ฌ๐ค ๐”๐ฌ๐š๐ ๐ž (๐๐ฎ):

The '๐๐ฎ' command is used to check the information of disk usage of files and directories on a system.

Example:
๐’…๐’–

5. ๐ƒ๐ข๐Ÿ๐Ÿ (๐๐ข๐Ÿ๐Ÿ):

The '๐’…๐’Š๐’‡๐’‡' command is used to compare the contents of two files line by line and display the differences between them.

Example:
๐’…๐’Š๐’‡๐’‡ ๐’‡๐’Š๐’๐’†1 ๐’‡๐’Š๐’๐’†2

6. ๐‡๐ž๐š๐ (๐ก๐ž๐š๐):

The '๐’‰๐’†๐’‚๐’…' command displays the starting content of a file. It shows the first 10 lines of the file by default.

Example:
๐’‰๐’†๐’‚๐’… <๐’‡๐’Š๐’๐’†_๐’๐’‚๐’Ž๐’†>

7. ๐“๐š๐ข๐ฅ (๐ญ๐š๐ข๐ฅ):

The '๐ญ๐š๐ข๐ฅ' command is used to display the last 10 lines of a file by default.

Example:
๐’•๐’‚๐’Š๐’ <๐’‡๐’Š๐’๐’†_๐’๐’‚๐’Ž๐’†>

8. ๐Œ๐จ๐ซ๐ž (๐ฆ๐จ๐ซ๐ž):

The '๐ฆ๐จ๐ซ๐ž' is similar to '๐œ๐š๐ญ' command but the only difference is, in case of larger files, '๐œ๐š๐ญ' command output will scroll off your screen while '๐ฆ๐จ๐ซ๐ž' command displays output one screenful at a time.

Example:
๐’Ž๐’๐’“๐’† <๐’‡๐’Š๐’๐’†_๐’๐’‚๐’Ž๐’†>

9. ๐ƒ๐ข๐ฌ๐ค ๐…๐ซ๐ž๐ž (๐๐Ÿ):

The '๐๐Ÿ' command displays information about total space and available space on a file system.

Example:
๐’…๐’‡

10. ๐ƒ๐ข๐ฌ๐ค ๐…๐ซ๐ž๐ž -๐ก (๐๐Ÿ -๐ก):

The '๐๐Ÿ -๐ก' command displays the output in a more user-friendly format, showing sizes in a human-readable format.

Example:
๐’…๐’‡ -๐’‰

๐‡๐ž๐ซ๐ž ๐ข๐ฌ ๐ญ๐ก๐ž ๐Ÿ๐ข๐ซ๐ฌ๐ญ ๐ฉ๐š๐ซ๐ญ -> https://ayushmaggo.hashnode.dev/1

๐‡๐ž๐ซ๐ž ๐ข๐ฌ ๐ญ๐ก๐ž ๐ฌ๐ž๐œ๐จ๐ง๐ ๐ฉ๐š๐ซ๐ญ -> https://ayushmaggo.hashnode.dev/2

Thank you for reading this blog, and I hope you found it informative. If you found this blog helpful, please like, share, and follow me for more blog posts like this in the future.

--Happy learning!!!

ย