List of frequently used Linux commands

Frequently used commands

Note writing

Use command Example
Get current directory pwd
Get file list ls
Get current date and time date
Move cd cd Desktop
File creation touch touch test.txt
Directory creation mkdir mkdir test
File deletion rm rm test.txt
Directory deletion rm -rf rm -rf test
Check the contents of the file cat cat test.txt
Check the contents of the file tail tail test.txt
Go inside the file vi vi test.txt
Move file mv mv test.txt directory/test.txt
File copy cp cp test.txt test.txt.copy

File operations

Operations to use after entering a file with the vi command

Use command Example
Input mode i
Input mode exit Press esc
Issue line number :set number
Move to a specific line number :78 Move to line 11
Move to the last line :$
Move to the very first line :1
Character search /test Search for the string test
Save the file and exit :wq!
Exit without saving the file :q!

Recommended Posts

List of frequently used Linux commands
Frequently used Linux commands
Frequently used Linux commands
[Linux] Review of frequently used basic commands 2
[Linux] List of Linux commands used in practice
[Linux] Review of frequently used basic commands
[Linux command] A memorandum of frequently used commands
[Linux] Frequently used Linux commands (file operation)
Frequently used Linux commands (for beginners)
[Anaconda3] Summary of frequently used commands
[Linux] Frequently used Linux commands (folder operation)
Display a list of frequently used commands on Zsh
Summary of frequently used commands of django (beginner)
Summary of frequently used commands in matplotlib
[Machine learning] List of frequently used packages
pyenv Frequently used commands
Frequently used tmux commands
Frequently used pip commands
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
List of frequently used built-in functions and methods
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Summary of frequently used commands (with petit commentary)
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
Frequently used commands in virtualenv
A collection of commands frequently used in server management
Basic knowledge of Linux and basic commands
Linux commands
Linux commands
8 Frequently Used Commands in Python Django
linux commands
Linux commands
Linux commands
[Linux] Summary of middleware version confirmation commands
Summary of petit techniques for Linux commands
[Linux] Learn the basics of shell commands
Linux command list
Paiza Skill Check List of Frequently Used D and C Ranks ~ Python ~
Network Linux commands
[Linux] Command to get a list of commands executed in the past
Linux user commands
New Linux commands! !!
Basic LINUX commands
Various Linux commands
Typical Linux commands (7)
[Linux] Review of commands for deploying on AWS
Frequently used methods of Selenium and Beautiful Soup
Summary of frequently used Python arrays (for myself)
Selenium webdriver Summary of frequently used operation methods
List of python modules
Docker. Set frequently used commands to alias "with explanation"
Summary of Linux (UNIX) commands that appeared in Progate
Copy of multiple List
Linux commands to remember
[Linux] Installation of nvm
List of activation functions (2020)
List of Python code used in big data analysis
New Linux commands! !! Part 2
A memorandum of commands, packages, terms, etc. used in linux (updated from time to time)
Depth of nested list
Comparison table of frequently used processes of Python and Clojure