Jeg har et problem med bash. Ganske enkelt, jeg kan ikke finne de riktige kommandoen (hvis det er én!) Å gå inn i "
- Arch_02 --"Katalogen. Som du ser, begynner navnet med bindestrek og dette forårsaker noen problemer:
Code:
localhost arch2 # pwd
/mnt/arch2
localhost arch2 # ls -l
total 4
dr-x------ 1 root root 4096 2007-04-29 20:09 - Arch_02 -
dr-x------ 1 root root 0 2006-12-10 18:14 RECYCLER
dr-x------ 1 root root 0 2006-12-02 22:24 System Volume Information
localhost arch2 # cd -\ Arch_02\ -
bash: cd: - : invalid option
cd: usage: cd [-L|-P] [dir]
localhost arch2 # cd "- Arch_02 -"
bash: cd: - : invalid option
cd: usage: cd [-L|-P] [dir]
localhost arch2 # cd '- Arch_02 -'
bash: cd: - : invalid option
cd: usage: cd [-L|-P] [dir]
localhost arch2 # cd - -\ Arch_02\ -
/root
localhost ~ # cd /mnt/arch2
localhost arch2 # cd - "- Arch_02 -"
/root