All Questions
6
questions
0
votes
1
answer
51
views
Alias CD to a directory that's name is included in current directory
I've been using cmake and creating a build folder for my cmake code and I want to easily cd to the build directory. I've been naming my build directory in this format:
/parent/codeandsuch
/parent/...
2
votes
1
answer
52
views
Create shorcuts in a terminal to navigate between folders [duplicate]
I am looking a way to create shortcuts for the cd command. My goal is to go quickly to distant folders. I have a new (big) drive which is not in my /home folder (but in /media/user/xxX/yyy/) and I ...
6
votes
4
answers
20k
views
Command line shortcuts for changing directory [duplicate]
I'm looking for an easy way to navigate to directories spanning multiple hard drives and want to set something equivalent to a shortcut within the terminal.
In Windows I would accomplish this with ...
3
votes
2
answers
2k
views
Can I run a command after the user uses Ctrl-C to kill a command?
So at my position we use a shared set of aliases to do builds. Something like...
alias 'build'='cd $BUILD_ROOT; m; cp ...; cp...; deploy; deploy; deploy; cd -'
This is super irritating because the ...
134
votes
36
answers
73k
views
Quick directory navigation in the bash shell
I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/.
But I don't want to type cd /[full-path]/...
20
votes
2
answers
11k
views
Change directory without typing cd?
Is it possible to make bash change directory in command line simply by typing that directory without any commands like cd?
For example is it possible instead of writing this:
$ cd /tmp
I just want ...