488891
100
Zoom out
Zoom in
Previous page
1/178
Next page
Relative Path
Enter a path to the relevant le or directory by using the current directory as a
starting point. This implies to give the levels you have to move up or down in the
le system tree to reach the target directory of le, starting from the current di-
rectory.
Paths contain lenames, directories or both, separated by slashes. Absolute paths
always start with a slash. Relative paths do not have a slash at the beginning, but
can have one or two dots.
When entering commands, you can choose either way to specify a path, depending
on your preferences or the amount of typing, both will lead to the same result. To
change directories, use the cd command and specify the path to the directory.
NOTE: Handling Blanks in Filenames or Directory Names
If a lename or the name of a directory contains a space, either escape the space
using a back slash (\) in front of the blank or enclose the lename in single quotes.
Otherwise Bash interprets a lename like My Documents as the names of two les
or directories, My and Documents in this case.
When specifying paths, the following “shortcuts” can save you a lot of typing:
The tilde symbol (~) is a shortcut for home directories. For example, to list the
contents of your home directory, use ls ~. To list the contents of another user's
home directory, enter ls ~
username
(or course, this will only work if you have
permission to view the contents, see Section 6.3, File Access Permissions”
(page 81)). For example, entering ls ~tux would list the contents of the home
directory of a user named tux. You can use the tilde symbol as shortcut for home
directories also if you are working in a network environment where your home
directory may not be called /home but can be mapped to any directory in the
le system.
From anywhere in the le system, you can reach your home directory by entering
cd ~ or by simply entering cd without any options.
When using relative paths, refer to the current directory with a dot (.). This is
mainly useful for commands such as cp or mv by which you can copy or move
les and directories.
The next higher level in the tree is represented by two dots (..). In order to
switch to the parent directory of your current directory, enter cd .., to go up
two levels from the current directory enter cd ../.. etc.
To apply your knowledge, nd some examples below. They address basic tasks you
may want to execute with les or folders using Bash.
90 Start-Up
100


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Suse openSUSE 11.3 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Suse openSUSE 11.3 in the language / languages: English as an attachment in your email.

The manual is 7 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info