English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories



can u explain the quote part, and the dots, i thought to go back two directories it was cd ../.. ; but that is only two dots

explanation of the command plz?

2007-02-13 12:33:45 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

'ls' lists the contents of the current directory path.
Nothing more.

Whatever is put after the letters 'ls', gives an output
relative to the current directory, but the actual
location is not changed.

'cd' changes the current directory path, bu does not
list any contents. Not what is required by the include.

'ls ..' is the same as 'ls ../'

'ls .' is the same as 'ls /'

Try changing the 'ls ..' in the include to 'ls -al' and
then you'll see the two extra entries, labelled '.' and
'..'in the page.

Incidentally, if all the man pages and the paths to them
are correctly installed, you should be able to use the
include to look up the manual pages for 'ls' and 'cd',
i.e.



HTH.

2007-02-13 13:03:54 · answer #1 · answered by Anonymous · 1 0

I've never used SSI but I have used unix which makes use of the same command. It is a list command so instead of moving to another location (like with cd) it displays the current or specified directory. I just think of it as the equivalent to dos's dir command.

2007-02-13 21:19:58 · answer #2 · answered by Anonymous · 0 0

ls . lists what's in the current directory.
ls .. lists what's back one directory.
ls ../.. lists what's back two directories... as you can guess.

Without the quotes, it would be parsed as
cmd=ls
and then .. would be just dangling.

2007-02-14 00:29:07 · answer #3 · answered by Wolf Harper 6 · 0 0

fedest.com, questions and answers