A memorandum of commands, packages, terms, etc. used in linux (updated from time to time)

Even if I look it up, it's troublesome to forget it and repeat it, so I will describe it here. I'm afraid to just copy and paste, so I'm aiming for a soft understanding of what I'm doing.

apt Eliminates the design mistake of ʻapt-get` described later. Recommended command.

apt-get (I will use apt from now on)

Operation and management of packages. A command line tool that operates and manages packages using the APT (Advanced Package Tool) library, which is a Debian-based package management system.

apt-get install Install the specified package.

$ apt-get install curl ca-certificates gnupg

You can specify multiple packages at the same time.

apt-get update Used to resynchronize packages. Do not install the new version, but update the package list for upgrading the packages that need to be upgraded and the new packages that just arrived in the repository. The index of the package is obtained from the location described in /etc/apt/sources.list. Always run ʻupdate before doing ʻupgrade or dist-upgrade.

apt-key Used to manage the list of keys that apt uses to authenticate packages. A package authenticated with this key can be considered reliable. When you get the package from other than Ubuntu official, you need to get the key information to authenticate with this command.

apt-key add filename

Add a new key to the list of trusted keys. If the file name is -, it will be read from the standard input.

$curl key URL| apt-key add -

If so, does it mean that curl receives the file at the URL destination and ʻapt-key add -` reads the file with the left key?

ca-certificates It is a package and provides a basic CA certificate. If you try to use the npm install or curl commands for HTTPS communication without this installed, you will get a CA certificate error. It is usually installed as a recommended package when you install the curl package.

curl A command line tool for sending and receiving files using URL syntax. The result of cURL, a project that provides libraries and command line tools for transferring data using various protocols.

deb Example

$ deb URL(Repository destination to download the package) buster main

deb is not a command. It is easy to be misunderstood like a command, but it is for entering the URL of the data acquisition source in sources.list according to the format. buster is the development code name of Debian 10, which is described because the distribution must be described after the URL of the data acquisition source. main consists of DFSG compliant packages that operate independently of software outside this area. These are the only packages that are considered part of the Debian distribution.

finger username

A command that displays information about users in the system. If you specify user name @ host name or host name, you can also check the user information in the specified host. Recently, it is often unavailable from the viewpoint of security.

gnugp A wealth of front-end applications and libraries are available with command line tools. Data and communications can be encrypted and signed. It has a versatile key management system, along with access modules for all types of public key directories.

passwd Change password. You can optionally lock the user and determine the number of valid days.

Change the password of the currently logged in user


 $ passwd 

Change the password of a user specified by someone other than root


 $sudo passwd username

psql PostgreSQL terminal front end. You can make inquiries interactively and issue it to PostgreSQL to check the results.

sh I'm not sure. Run the shell? Adding -c means that the existing file will not be overwritten by the redirect.

sources.list APT data acquisition source settings list.

su Temporarily changed to another user. ʻExit` to return to the original user.

yum Package management for CentOS and Fedora.

Distribution

A form in which Linux is distributed.

For example.

Standard input

A data input source that is used as standard when a program running on a computer does not specify anything.

Recommended Posts

A memorandum of commands, packages, terms, etc. used in linux (updated from time to time)
[Linux command] A memorandum of frequently used commands
[Updated from time to time] Summary of design patterns in Java
[Linux] List of Linux commands used in practice
Summary of vtkThreshold (updated from time to time)
[Linux] Command to get a list of commands executed in the past
Summary of gcc options (updated from time to time)
Useful help sites, etc. (updated from time to time)
Apache settings, log confirmation, etc. (* Updated from time to time)
[Updated from time to time] Review of Let Code NumPy
A collection of commands frequently used in server management
(Updated from time to time) Storage location of various VS Code configuration files Memorandum memo
Summary of folders where Ruby, Python, PostgreSQL, etc. are installed on macOS (updated from time to time)
How to display a specified column of files in Linux (awk)
vtkXMLUnstructuredGridReader Summary (updated from time to time)
vtkOpenFOAMReader Summary (Updated from time to time)
[Notes / Updated from time to time] This and that of Azure Functions
Engineer vocabulary (updated from time to time)
A memorandum to change to Manjaro Linux
Tensorflow memo [updated from time to time]
List of frequently used Linux commands
A memorandum of filter commands that you might forget in an instant
[Linux] Review of frequently used basic commands 2
Summary of frequently used commands in matplotlib
Private Python handbook (updated from time to time)
vtkClipPolyData / DataSet Summary (Updated from time to time)
[V11 ~] A memorandum to put in Misskey
[Linux] Review of frequently used basic commands
[Updated from time to time] PostmarketOS related notes
(Preserved version: Updated from time to time) A collection of useful tutorials for data analysis hackathons by Team AI
A programming beginner tried to find out the execution time of sorting etc.
[Azure] I tried to create a Linux virtual machine in Azure of Microsoft Learn
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
I want to store the result of% time, %% time, etc. in an object (variable)
A memorandum of method often used in machine learning using scikit-learn (for beginners)
[Updated from time to time] LetCode algorithm and library
A memorandum of calling Python from Common Lisp
Notes on machine learning (updated from time to time)
A clever way to time processing in Python
OpenFOAM post-processing cheat sheet (updated from time to time)
How to handle Linux commands well from Python
[Python/Django] Summary of frequently used commands (2) <Installing packages>
progate Python learning memo (updated from time to time)
Understand design patterns by comparing implementations in JavaScript and Java [Updated from time to time]
I had a hard time trying to access Hadoop3.0.0 from a browser (and Arch Linux)
Updated the watching camera in my home: (2) I encountered a problem in the trial operation
vtkXMLUnstructuredGridReader Summary (updated from time to time)
vtkOpenFOAMReader Summary (Updated from time to time)
I made a program in Python that changes the 1-minute data of FX to an arbitrary time frame (1 hour frame, etc.)
[Linux] A list of Linux commands that beginners should know
Used from the introduction of Node.js in WSL environment
Summary of Linux (UNIX) commands that appeared in Progate
Machine learning python code summary (updated from time to time)
A collection of code often used in personal Python
A memorandum on how to use keras.preprocessing.image in Keras
A collection of Excel operations often used in Python
Display a list of frequently used commands on Zsh
I read the Chainer reference (updated from time to time)
[Linux] How to put your IP in a variable
Unzip a lot of ZIP-compressed files with Linux commands to UTF8 and stick them together
How to create an instance of a particular class from dict using __new__ () in python
How to quickly count the frequency of appearance of characters from a character string in Python?
How to plot the distribution of bacterial composition from Qiime2 analysis data in a box plot