menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

Linux Esse...
source image

Dev

5d

read

94

img
dot

Image Credit: Dev

Linux Essentials: Taming Files & Directories Like a Terminal Boss

  • Creating directories is simple with commands like 'mkdir' to create a single directory or 'mkdir -p' to create nested directories.
  • To create files, use the 'touch' command, such as 'touch /Luna.py' to create a single file or 'touch /Luna1.py /Luna2.py /Luna3.py' to create multiple files.
  • The 'cat' command is useful for viewing or writing file contents, allowing you to create and write to a new file or append content to an existing one.
  • To delete files or directories, you can use the 'rm' command, like 'rm -rvf /Luna1.py' to delete a single file or 'rm -rvf /Luna2.py /Luna3.py /Luna4.py' to delete multiple files.

Read Full Article

like

5 Likes

For uninterrupted reading, download the app