Posts

Showing posts with the label bash usuage

Shorthand at the Linux CLI

Some of the very useful shortcuts of the CLI are / :- root directory ./ :- current directory ./command_name :- run a command in the current directory when the current directory is not on the path ../ :- parent directory ~ :- home directory $ :- typical prompt when logged in as ordinary user # :- typical prompt when logged in as root or superuser ! :- repeat specified command !! :- repeat previous command ^^ :- repeat previous command with substitution & :- run a program in background mode [Tab][Tab] :- prints a list of all available commands. This is just an example of autocomplete with no restriction on the first letter. x[Tab][Tab] :- prints a list of all available completions for a command, where the beginning is ``x'' [Alt][Ctrl][F1] :- switch to the first virtual text console [Alt][Ctrl][Fn] :- switch to the nth virtual text console. Typically, there are six on a Linux PC system. [Alt][Ctrl][F7] :- switch to the first GUI console, if there is one running. If the graph...