pavement

Cd

From FreeBSDwiki
Revision as of 06:38, 24 August 2012 by DavidYoung (Talk | contribs)
Jump to: navigation, search

The cd command ("Change directory"), sometimes also spelled chdir, is built into any version of the Unix shell that you are likely to find. It is also found in DOS and the Windows CLI (cmd.exe or command.com), where it means the same thing as it does in a shell on FreeBSD and other unixlike OSes.

A notable differences between the Unix shell cd and the DOS version is that, all shell versions of cd require a space between cd and the name of the directory to change to, even if the name is the symbol . (current directory), .. (container directory), or / (file-system root directory).

C:\Windows> cd\stuff (windows)
splat# cd /stuff     (unixlike)
C:\Windows> cd..     (windows)
splat# cd ..         (unixlike)

cd by itself will send you to your home directory, as will cd ~. cd - will show you and then change your directory to the last directory you were in, as below:

[dave]@deus /var/log % cd ~
[dave]@deus ~ % pwd
/home/dave
[dave]@deus ~ % cd /etc
[dave]@deus /etc % cd -
/home/dave
[dave]@deus ~ %

Contents

Common Arguments

.. up one level, e.g., cd .. in /e/foo will take you to /e/
- previous directory
~ home
~username home directory of the user "username"
. the directory I am in. Not used very often with cd but more often with commands.

Simple Ways Of Dealing With Conflict

Being in control of your life and having realistic expectations about your day-to-day challenges are the keys to stress management, which is perhaps the most important ingredient to living a happy, healthy and rewarding life.

[Simple Ways Of Dealing With Conflict]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

A Quick Guide To The Art of Listening

The most basic of all human needs is the need to understand and be understood. The best way to understand people is to listen to them. Ralph Nichols

[A Quick Guide To The Art of Listening]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

A Quick Guide To The Art of Listening

The most basic of all human needs is the need to understand and be understood. The best way to understand people is to listen to them. Ralph Nichols

[A Quick Guide To The Art of Listening]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

The Importance of Learned Optimism

What 25 years of research reveal about the cognitive skills of happiness and finding lifes greater purpose.The illiterate of the 21st century, Alvin Toffler famously said, will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn. Our outlook on the world and our daily choices of disposition and behavior are in many ways learned patterns to which Tofflers insight applies with all the greater urgency

[The Importance of Learned Optimism]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Rainbow of Colorful Critters Discovered in Suriname

A scientific expedition into one of the worlds last pristine tropical forests has revealed incredibly diverse species and extraordinary cultural heritage, said Conservation International (CI) today, announcing the results of a scientific survey in southwest Suriname that documented nearly 1,300 species, including 46 species which may be new to science. The announcement comes as the global organization marks 25 years of science-based conservation, this month.

[Rainbow of Colorful Critters Discovered in Suriname]

[GoodvilleNews.com - good, positive news, inspirational stories, articles]

Personal tools