H
H
havemanyquestions2018-05-24 07:40:27
Command line
havemanyquestions, 2018-05-24 07:40:27

How to quickly access a folder in Mac OS Terminal?

Hello.
In the process of work, you need to quickly move to a specific folder. This happens quite often. And each time to perform cd, ls, cd, ...to remember the structure, for a long time. Is there any mechanism to quickly access the required folder by creating shortcuts for quick access? Like cd ~for the home directory.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2018-05-24
@immaculate

There is a variable in bash CDPATH(the first guide I found was: https://hints.macworld.com/article.php?story=20050...
But I don't use it because it's not necessary to go through one directory. For example, to go to /home/jmv/work/archive/dcg-yula-laI enter the directory on the command line: cd ~/w<TAB>/a<TAB>/dc<TAB>With habit, it turns out the fastest, even faster than switching to file managers.

A
Arman, 2018-05-24
@Arik

Alias ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question