Linux commands

#File / directory display under
ls file name
ls -l File name
ll file name

#Login with root privileges
su -

#View current working directory

#Directory move
cd destination path

#Directory creation
mkdir directory name

#Directory deletion
rm -r directory name

#File deletion
rm file name

#File name change/Move file storage destination
mv file source file destination

#File copy
cp copy source copy destination

#View the contents of a text file
cat file name

#Log monitoring
tail -f Log file name

#Add user
adduser username

#Change user password

#Delete user
deluser username

#File owner change
chown username:Group name File name

#Change file permissions
chmod 644 filename

* 644 is "rw"- r-- r--Represents
421      421      421
rwx      rw-      rw-       ← r: read,  w: write,  x:Abbreviation for execute
 ↑       ↑       ↑
Your own group Other groups

#Server stop
shutdown -h now

#Server restart
shutdown -r now

#Date change
date 010123592020
* January 01, 23:59, 2020

#Service status check
systemctl status

#Service outage
sysytemctl stop

#Service start
sysytemctl start

#Service restart
sysytemctl restart

#vi command
#View file

#Input mode from the cursor position

#Add line below the cursor

#Delete line at cursor position

#Delete the character at the cursor position

#Normal mode
esc key


#Save and exit

Recommended Posts

Linux commands
Linux commands
linux commands
Linux commands
Linux commands
Network Linux commands
Verbalize Linux commands
Linux user commands
New Linux commands! !!
Basic LINUX commands
Various Linux commands
Typical Linux commands (7)
Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
[Linux] Group related commands
Linux commands to remember
New Linux commands! !! Part 2
Studying Linux commands and frustration
Basic knowledge of Linux and basic commands
linux memorandum
Linux command # 4
Linux command # 3
Linux overview
Linux basics
direnv (linux)
Linux Frequently Used Commands [Personal Memo]
Organize Linux
Linux practice
Handle dates in Linux bash commands
Ubuntu Linux 20.04
Linux Summary
Linux process
[Linux Mint 20] Various WiFi confirmation commands
[Linux] Frequently used Linux commands (file operation)
Linux permissions
Basic commands
Linux command # 5
About Linux
Convenient shortcut keys for Linux commands! !! !!
Frequently used Linux commands (for beginners)
Linux commands that you often forget
Linux basics
[Linux] File and directory operation commands
Forgot linux
List of frequently used Linux commands
Try compiling Linux commands (cross-compilation practice)
About Linux
Linux commands related to character code
[Linux] Frequently used Linux commands (folder operation)
About Linux
About Linux commands Super basic edition
About Linux
About Linux ①
Note: Linux concepts and minimum commands
Use Linux commands on Android devices
Linux redirect
Linux (for users and su / sudo commands)
Create your own Linux commands in Python
[Linux] Review of frequently used basic commands 2