Terminal
Navigating
Some tips to help data scientist navigate faster in terminal.
pushd, popd and dirs
pushdto register and change directories:pushd folder_namewill change current directory tofolder_nameand register the folderfolder_namein our stack. If no folder name is passed onto the command, it will be default to$HOMEfolder.popdto go to the last directory in the stack and remove it from the stack. In this example,popdwill change the current working directory tofolder_name.dirswill 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/.