Some tips to help data scientist navigate faster in terminal.
pushdto register and change directories:
pushd folder_namewill change current directory to
folder_nameand register the folder
folder_namein our stack. If no folder name is passed onto the command, it will be default to
popdto go to the last directory in the stack and remove it from the stack. In this example,
popdwill change the current working directory to
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 line
ctrl+e: to the end of the line
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.
Published: by Lei Ma;
Table of Contents