Frequently used linux commands

Here are some frequently used linux commands.

ls List files in the current directory

$ ls

option Include detailed information

$ ls -l

Include hidden files

$ ls -a

cd Move from the current directory to the specified directory

$ cd test

mkdir Create a directory with the specified name

$ mkdir test

touch Create a file with the specified name

$ touch test.txt

cp Duplicate the specified file with the specified name

$ cp test.txt test_copy.txt

option Duplicate the specified directory with the specified name

$ cp -r test test_copy

mv Move the specified file or directory with the specified name

$ mv test.txt ../test_copy.txt

rm Delete the file with the specified name

$ rm test.txt

option Delete the directory with the specified name

$ rm -r test

Make sure to delete the directory with the specified name without warning

$ rm -rf test

Recommended Posts

Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
[Linux] Frequently used Linux commands (file operation)
Frequently used Linux commands (for beginners)
List of frequently used Linux commands
[Linux] Frequently used Linux commands (folder operation)
pyenv Frequently used commands
Frequently used tmux commands
Frequently used pip commands
[Linux] Review of frequently used basic commands 2
[Linux] Review of frequently used basic commands
Linux commands
Linux commands
linux commands
Frequently used commands in virtualenv
[Linux command] A memorandum of frequently used commands
Linux commands
Linux commands
8 Frequently Used Commands in Python Django
[Anaconda3] Summary of frequently used commands
Network Linux commands
Linux user commands
New Linux commands! !!
Basic LINUX commands
Various Linux commands
Typical Linux commands (7)
Summary of frequently used commands of django (beginner)
Summary of frequently used commands in matplotlib
[Linux] List of Linux commands used in practice
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
[Linux] Group related commands
Linux commands to remember
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
New Linux commands! !! Part 2
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Summary of frequently used commands (with petit commentary)
Docker. Set frequently used commands to alias "with explanation"
A collection of commands frequently used in server management
Display a list of frequently used commands on Zsh
[For beginners] Django Frequently used commands and reference collection
Frequently used ps command options
Studying Linux commands and frustration
[Python] Frequently used library code
Frequently used subpackages of SciPy
Python frequently used code snippets
Introduction to Linux Commands ~ LS-DYNA Edition ~
Basic knowledge of Linux and basic commands
[Golang] Notes on frequently used functions
Handle dates in Linux bash commands
Classify frequently used file / folder dialogs
[Linux Mint 20] Various WiFi confirmation commands
Convenient shortcut keys for Linux commands! !! !!
Linux
Linux commands that you often forget
[Linux] File and directory operation commands
Commands often used on GAE / P
Try compiling Linux commands (cross-compilation practice)
Linux commands related to character code
About Linux commands Super basic edition