what does cd \ do at the command line
only noticed now when you type
cd\ or cd \ ....it gives you a > what is this function? tried google didnt show anything about cd\ |
The backslash escapes the following character. If you do it at the end of a line, it tells the interface that things will continue on the next line. In the case of either a script or an interactive shell, you can do that to make what you are doing more readable.
So specifically with "cd" you are giving it "cd" and then telling it to hang on and wait for whatever you are going to type on the next line. Edit: Here's an example firing up "qemu" over several lines: Code:
qemu-system-x86_64 -boot c -redir tcp:2227::22 -redir tcp:4777::80 \ |
The \ is a line continuation character (or escape character). So the > is the prompt to finish the line. Versus / that is a path character.
Code:
$ echo -e " ""\x48""\x45""\x4c""\x4c""\x4f" Code:
$ echo -e \ |
Also, using \ before a command tells it to ignore any alias that might be set for the command.
$ \ls Where just ls is probably aliased to pass parms that uses colors. |
Oh boy, that's actually a very difficult thing to explain if you don't have experience with how escape characters work.
Were you, by any chance trying to go to the root directory? In which case: Quote:
|
All times are GMT -5. The time now is 02:31 AM. |