zlacker

[return to "Understanding the linux filesystem (/etc, /var, /bin, /opt etc.)"]
1. Freaky+v5[view] [source] 2013-06-26 03:52:45
>>alexho+(OP)
I never understood why this hasn't been modernized. The three-letter nearly-meaningless directory names seem so obsolete.
◧◩
2. quacke+V7[view] [source] 2013-06-26 04:40:42
>>Freaky+v5
Unless your ssh'd into a machine, it's annoying to type long dir's. What's worse is compensating for spaces in filenames.
◧◩◪
3. freewo+68[view] [source] 2013-06-26 04:45:28
>>quacke+V7
Thats what tab completion is for.
◧◩◪◨
4. quacke+G8[view] [source] 2013-06-26 05:01:38
>>freewo+68
Thank you freework, didn't know about that one (embarrassing as it is to admit).

Still sucks dealing with spaces when it comes to command processes like ffmpeg -i <no_tab>...but awesome for cd'ing or ls'ing!

◧◩◪◨⬒
5. kanema+n9[view] [source] 2013-06-26 05:15:18
>>quacke+G8
Just prefix the space with a backslash. Eg: ``$ ls /foo/bar/my\ directory/``. With that backslash in place, you can continue your tab-completion.
◧◩◪◨⬒⬓
6. iSnow+Ma[view] [source] 2013-06-26 05:55:40
>>kanema+n9
Still, on some international keyboards, backspace is hard to reach, eg. on a German Mac keyboard, is it <alt><shift>7.

So don't put spaces in path names, it's a bitch to work with.

◧◩◪◨⬒⬓⬔
7. emillo+cf[view] [source] 2013-06-26 07:46:35
>>iSnow+Ma
You can quote the space:

    mkdir x\ y
    cd x' 'y
(or the entire part: cd 'x y')
[go to top]