[Linux] Bash command that allows to go up to a certain directory.

in #linux6 years ago

upto

Bash function that allows to go up to a certain directory. Stop counting how many levels you have to go up in a folder tree and just type where you want to go! No more cd ../../../...

Usage example

Current dir /home/username/myfolder/myproject/mysubproject/function/
If you want to go to /home/username/myfolder/myproject you just type upto myproject
UPTO will go to the highest folder matched, in the previous example, if you write upto my you will move to /home/username/myfolder.

GitHub Download Page

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63792.82
ETH 2563.50
USDT 1.00
SBD 2.66