Skip to main content

All Questions

Tagged with
28 votes
8 answers
24k views

How to set an alias on a per-directory basis?

Suppose you have an alias go, but want it to do different things in different directories? In one directory it should run cmd1, but in another directory it should run cmd2 By the way, I have an ...
B Seven's user avatar
  • 8,119
8 votes
4 answers
9k views

How to create a short path?

We have so many useful folders, which are in different path, for our working in Linux. For example : $ cd ~/Documents/Courses/EDX/physics2013/ $ cd ~/Documents/Company/OpenGL/Proj/... $ cd ~/...
Gapry's user avatar
  • 245
3 votes
1 answer
8k views

creating abbreviations for commonly used paths

I was wondering whether it is possible to create abbreviations that can be used in terminal. I know about alias command, but am not sure whether that can be used for what I am looking for. Example: ...
Curious2learn's user avatar