[Linux] A list of Linux commands that beginners should know

Begin

Recently I started studying Linux. You must first learn the commands so that you can work with the CUI. The following commands are often used, so I have summarized them. I think it will be useful for beginners' study and review.

Linux commands

1. A command that displays a command reference manual

command Taste Example of use
man Display the command reference manual $man command name
info Display the command reference manual $info command name

2. Command name for manipulating files / directories

command Taste Example of use
ls Display file and directory information $ ls
touch Create a new file with no contents $touch file name
cp Copy files and directories $cp copy source copy destination
mv Move files and directories $mv original file(directory)File after change(directory)Name
Rename files and directories $mv original file(directory) 移動するdirectory
rm Delete files and directories $rm file name
cat Browse files $cat file name
more Display text files one screen at a time $more file name
head Display the first 10 lines of a text file $head file name
tail Show last 10 lines $tail file name
wc Count the number of lines, words (word count), and characters in a text file $wc text file name
ln Register links to directories and files $ln Link source registered name
whereis Search for a path $whereis command name
find Search for files and directories (folders) $find file name
grep Search for the existence of a particular string in a file $grep search string filename
pwd Display the directory you are working on $ pwd
cd Move the current directory (currently working directory) $cd directory
mkdir Create a new directory $mkdir directory name
rmdir Delete directory $rmdir directory name
tree Display directories and files in a tree $ tree

3. Command to display information

command Taste Example of use
stat Display attributes, dates, etc. $stat filename
who Show who is logged in to the system $ who
w Show who is logged in to the system $ w
whoami Display the user name corresponding to the current effective user, id. $ whoami
hostname Display the host name $ hostname
uname Check system information $ uname
dmesg Display and control the contents of the kernel ring buffer $ dmesg
top Display currently running processes in descending order of CPU utilization $ top
du Aggregate and display disk usage by directory $ du
df Aggregate and display the size of free space on the disk $ df
free Check memory usage $free
ifconfig Check the network connection status $ ifconfig
ping Checks if the network is communicating with the specified host $ping IP address or host name to connect to
netstat Display the network connection status of the host, network statistics for each socket interface, etc. $ netstat
locale Display information on the current and available locales $ locale
id Display identification information $id username

the end

These are some commonly used Linux commands. I haven't entered the command to compress or decompress the file.

Recommended Posts

[Linux] A list of Linux commands that beginners should know
List of frequently used Linux commands
[Linux] List of Linux commands used in practice
[Linux] Command to get a list of commands executed in the past
List of links that machine learning beginners are learning
[Linux command] A memorandum of frequently used commands
[Linux] A list of unique command selections that are convenient but unexpectedly unknown
Summary of Linux (UNIX) commands that appeared in Progate
A script that outputs a list of SoftLayer portal users
Display a list of frequently used commands on Zsh
A brief summary of Linux
CLI tool that just outputs a list of prefectures quickly
Machine learning and statistical prediction, a paradigm of modern statistics that you should know before that
Basic knowledge of Linux and basic commands
Explaining the mechanism of Linux that you do not know unexpectedly
Frequently used Linux commands (for beginners)
[Must-see for beginners] Basics of Linux
Linux commands that you often forget
A brief summary of qubits (beginners)
Knowledge of linear algebra that you should know when doing AI
Generate a list of consecutive characters
Introduction of ls command lsix that can display a list of images
[Python] A program that rotates the contents of the list to the left
[AtCoder for beginners] A story about the amount of calculation that you want to know very roughly
A note about the functions of the Linux standard library that handles time
A memorandum of filter commands that you might forget in an instant
[Linux] Review of frequently used basic commands 2
[Linux] Summary of middleware version confirmation commands
Display a list of alphabets in Python 3
[Linux command summary] Command list [Must-see for beginners]
A quick overview of the Linux kernel
[python] Get a list of instance variables
String conversion of a list containing numbers
Summary of petit techniques for Linux commands
[Linux] Review of frequently used basic commands
[Linux] Learn the basics of shell commands
[Python] Get a list of folders only
Linux commands
Linux commands
linux commands
Summary of linux command techniques that I knew when I was a fledgling engineer
Linux commands
Linux commands
[Linux] Review of commands for deploying on AWS
[Linux command] cp command option list [Must-see for beginners]
[Linux command] ls command option list [Must-see for beginners]
A set of integers that satisfies ax + by = 1.
[Linux command] touch command option list [Must-see for beginners]
[Linux command] less command option list [Must-see for beginners]
[Linux command] cat command option list [Must-see for beginners]
[python] Create a list of various character types
Display output of a list of floating point numbers
Make a copy of the list in Python
[Linux command] pwd command option list [Must-see for beginners]
[Linux command] rm command option list [Must-see for beginners]
[Linux command] cd command option list [Must-see for beginners]
[Linux command] mv command option list [Must-see for beginners]
Get a list of IAM users with Boto3
[Linux command] man command option list [Must-see for beginners]
Get a list of Qiita likes by scraping
[Linux command] ssh command option list [Must-see for beginners]