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.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Automated Recursive Encryption in a Directory Using Shell Script
- How to check if a directory or a file exists in system or not using Shell Scripting?
- Introduction to Linux Shell and Shell Scripting
- Bash shell script to find sum of digits
- Bash shell script to swap two numbers
- Looping Statements | Shell Script
- Conditional Statements | Shell Script
- String Operators | Shell Script
- Bash shell script to find out the largest value from given command line arguments
- Implementing Non-contiguous Memory Management Techniques
- Array Basics Shell Scripting | Set 2 (Using Loops)
- Create a password generator using shell scripting
- Getting System and Process Information Using C Programming and Shell in Linux
- Deleting a User in Linux using Python Script
- How to find time taken by a command/program on Linux Shell?
- Making your own Linux Shell in C
- A Shell program To Find The GCD | Linux
- Reverse a String | Shell Programming
- Array Basics in Shell Scripting | Set 1
- Developing a Linux based shell
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.