Terminal
Navigating
Some tips to help data scientist navigate faster in terminal.
pushd
, popd
and dirs
pushd
to register and change directories:pushd folder_name
will change current directory tofolder_name
and register the folderfolder_name
in our stack. If no folder name is passed onto the command, it will be default to$HOME
folder.popd
to go to the last directory in the stack and remove it from the stack. In this example,popd
will change the current working directory tofolder_name
.dirs
will list all working directories registered in the stack. The current working directory will always be in the stack.
Moving in Commands
ctrl+a
: to the beginning of linectrl+e
: to the end of the line
MISC
Long Commands
ctrl+x e
: start using the default editor to edit the command. For example, I started to type in a command and it is getting too long, I would prefer a better editor.
Planted:
by L Ma;
Similar Articles:
L Ma (2019). 'Terminal', Datumorphism, 12 April. Available at: https://datumorphism.leima.is/wiki/tools/terminal/.