Creating and removing directory structures on Linux
Tuesday, 3 January 2023
Add Comment
Managing directories on Linux is easy, but the process gets more complex when you need to create, empty or remove large, complex directory structures. This post will take you from the most basic commands to some fairly complex ones that can help make the process easier.
mkdir
The mkdir command can create a single directory like this:
$ mkdir newdir
It can also create a complex directory and subdirectory structure with a command like the one below. The -p argument tells the command to create the base directory if it doesn't already exist.
Each group of directory names that appears in the command shown – like {1,2,3} and {docs,script} – will result in a series of subdirectories being created at that level.
from Network World https://ift.tt/7iYlmnE
Genrerating Link.... 15 seconds.
Your Link is Ready.
0 Response to "Creating and removing directory structures on Linux"
Post a Comment