|
|
|
|
|
by kerkeslager
3673 days ago
|
|
If you find yourself doing a series of `cd` and `ls` commands frequently, I feel like you might be using `cd` and tab completion ineffectively. Instead of doing: ls
cd foo/
ls
cd bar/
ls
cd baz/
You can do: ls
cd foo/<tab><tab>bar/<tab><tab>baz/
This isn't what it will look like, it's just the key sequence (if this doesn't make sense let me know and I'll try to explain better). <tab><tab> will list all the possible completions, which is equivalent to an ls, without having to type in an ls and then another cd.You can frequently avoid even more `cd`/`ls` shenanigans by judiciously using `pushd`. |
|
How do I escape asterisk on HN? :O