Skip to main content

All 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/...
saphire121's user avatar
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 ...
ppr's user avatar
  • 1,917
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 ...
user1695505's user avatar
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 ...
Hounshell's user avatar
  • 303
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]/...
saiy2k's user avatar
  • 1,603
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 ...
Vladimir's user avatar
  • 310