linux

Linux Directory Commands




To change directories from your current working directory in linux, use the command cd.
cd /etc/



The above command changes directories to the /etc/ directory. The second word on the command line must be a path. It can either be relative or absolute, and can move one directory or many.In linux if cd is entered with just no options it moves to the home directory of the user.

Options with cd
cd — Returns you to your login directory
cd - — Returns you to your previous working directory
cd ~ — Also returns you to your login directory
cd / — Takes you to the entire system's root directory
cd /root — Takes you to the home directory of the root user.Only a root user can access this /root directory
cd /home — Takes you to the home directory, where user login directories are usually stored
cd .. — Takes you to the home directory of present working directory.



                           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