linux

Managing Linux Directories




In linux directories are treated like files. They can be created, deleted, moved and copied from a shell prompt, using commands similar to those for files.



Creating Directories
In order to create a new sub-directory in a directory,you must have permissions for creating it. Most users have these permissions in their home directory (and its sub-directories) and the /tmp/ directory.

To create a new directory using a shell prompt, use the command mkdir.
eg:  mkdir directory-name

Deleting Directories


To delete an empty directory from a shell prompt, enter the command rmdir. To delete a directory that may not be empty ,enter the command rm -rf directory-name.

Dot Directories
Applications create "dot" directories as well as dot files. Dot files are a single hidden configuration file — a dot directory is a hidden directory of configuration and other files required by the application. The non-configuration files in these directories are generally user-specific, and will be available only to the user who installed them.


                           send to a friend                                            moby@mylinuxplanet.com      

Please free to mail your queries and feed back at moby@mylinuxplanet.com a free linux tutorial website


Linux Tutorials

About This Site

History of Linux

Open Source

File system terms

Linux File System

History of Shell

Opening a Shell Prompt

Shell Prompt Basics

Linux Shell Prompt

Linux Commands

Viewing Text Files From The Shell

Manipulating Information from Shell

Linux Help

Managing Linux Files

Multiple Commands Usage

Managing Linux Directories

Linux Directory Commands

Locating And Search Commands

Command History

Wildcard Characters

Creating a Linux User

Ownership And Permissions

File Compression

Virtual Console Logout & Shutdown

Running Background Process

Shell Prompt Keyshortcuts

Clearing And Resseting Terminal

Vi Editor

Shell Scripting

Installing and Removing Applications

Servers in Linux

Our Link Partners