Little Girl's Mostly Linux Blog

ChangeDirectory


Change directory

This page was last updated on October 12, 2009.

It’s not recommended to use special meta-characters (like *, ?, $, &, brackets, etc.) in file names or directory names because they have special meaning to the Linux shell.

Go home

  • Type this command in a terminal window:
  • cd /home/username
  • Or:
  • cd ~
  • Or:
  • cd

Change to a directory up one level

  • Type this command in a terminal window:
  • cd ..

Change to the previous directory

  • Type this command in a terminal window:
  • cd -

Change to a directory with spaces in its name

  • Type this command in a terminal window:
  • cd My\ Stuff
  • Or:
  • cd "My Stuff"
  • Or:
  • cd My*
  • Or:
  • cd My


Obligatory Happy Ending

And they all lived happily ever after. The end.

Back to top

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: WordPress Classic. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.