Directory management constitutes the functions dealing with organization and maintenance of various directories. Directories usually contain files of any type, but this may vary between file systems. The content of a directory does not affect the directory object itself.
Some of the directory functions are:
- Absolute/ Relative Pathnames
- Listing Directories
- Creating Directories
- Modifying Directories
You can write your script in an editor like pico etc. Execute your files as mentioned below in the output screenshot. The following shell script implements these functions of directory management, using commands available in Linux.
- How to check if a directory or a file exists in system or not using Shell Scripting?
- Conditional Statements | Shell Script
- String Operators | Shell Script
- Looping Statements | Shell Script
- Bash shell script to swap two numbers
- Bash shell script to find sum of digits
- Bash shell script to find out the largest value from given command line arguments
- Introduction to Linux Shell and Shell Scripting
- Path Name in File Directory
- Making your own Linux Shell in C
- Reverse a String | Shell Programming
- A Shell program To Find The GCD | Linux
- Structures of Directory in Operating System
- Basic Operators in Shell Scripting
- Basic Shell Commands in Linux
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.