(Remember quickly) How to use the LINUX command line

Linux command line?

I think that most people who are just starting to use linux only know the input of delete, but it is super convenient to remember shortcuts etc. first, so I will write it here.

Operations that you definitely want to remember with haste

How to use emacs

The command line of LINUX is EMACS by default, so you can use EMACS in the first place, but the following is a list of shortcuts that you should definitely remember. (* At first, the command may be short and you may not be in trouble, but soon you will need a long command, and it will be troublesome to move with the arrow keys.)

Be sure to remember the shortcut above! !! !! Required.

Command interruption

End of shell

Input completion by tab

View command history

Arrow key

The command history can be viewed above and below the arrow keys. The up arrow keys move to the old one, and the down arrow keys move to the new one.

history command

You can go back with the arrow keys, but you can use the history command to display the past history at once.

I really just hit it.

history

The following commands are useful for developing a little and finding what you are looking for in history.

history |grep The string you want to search for

→ This "|" can be read as "pipe" and the result of the command can be used as the input for the next command. I won't go into details here, but in the above example, think of passing the history result to grep. grep will find the string you want to search for in the results of the passed history command.

If you give one sample, it looks like this. It extracts the history that contains the character string aws.

history | grep aws

If you think that there are a few, you can narrow down the number by head or tail, or give it to less and take a closer look.

history | grep aws | tail

Recommended Posts

(Remember quickly) How to use the LINUX command line
[Linux] How to use the echo command
How to use the Linux grep command
Linux user addition, how to use the useradd command
How to use the generator
How to use the decorator
How to use the grep command and frequent samples
How to use the zip function
How to use MBDyn (command setting)
[linux] kill command to kill the process
How to use the ConfigParser module
Add Linux user, how to use useradd command (password specification)
[python] How to use __command__, function explanation
How to calculate Use% of df command
How to use CUT command (with sample)
3 best ways to use the less command
[C language] How to use the crypt function on Linux [Password hashing]
How to use the C library in Python
[Python] How to test command line parser click
How to receive command line arguments in Python
How to use MkDocs for the first time
Quickly display the QR code on the command line
How to use the graph drawing library Bokeh
How to use the Google Cloud Translation API
How to operate Linux from the outside Procedure
How to use the NHK program guide API
[Algorithm x Python] How to use the list
How to measure line speed from the terminal
How to create a shortcut command for LINUX
Convert XLSX to CSV on the command line
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use image-match
How to use shogun
How to use Pandas 2
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to use partial
How to use Bio.Phylo
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use venv
How to use dictionary {}
How to use Pyenv
How to use list []
How to use python-kabusapi
How to use OptParse
Linux command line shortcut
How to use return
How to use dotenv
How to use pyenv-virtualenv
How to use Go.mod