It will be a memo for learning.
It is one of the same OS types as. The OS is the software that manages all the hardware of your computer
.
Linux is an OS mainly used for servers
.
command | Explanation | Example of use | option |
---|---|---|---|
cd | Move directory (folder) | cd move folder name | |
ls | Display the contents of a folder in list format | Go to the target folder and ls | -a System file display-l long format-d Display only specified directory information |
mv | Move files | mv move source move destination | |
cp | Copy files and folders | cd move source move destination | -i interactive mode-Preserve p file attributes-R whole copy-v View the copied file name |
clear | Clean the screen without erasing | ||
mkdir | Create a folder | mkdir name | -p Create nested folders at once |
touch | Create a file | touch name | |
rmdir | Delete empty files | rmdir name | |
rm | Delete files and folders | rm name | -r Delete the directory and all files in the directory. No confirmation |
pwd | Display your current location | ||
find | Search for files | find / -name name | |
cat | View the contents of the file | cat file name | -n line count display |
diff | Show the difference between a file and the contents of a file | diff old name new name | |
grep | Extract the line if the specified string exists in the text | grep "The character you want to search" *file name | |
chmod | Change file and folder permissions | chmod permission file name | |
chown | Change the owner or group of a file or folder | chown Username you want to change Filename you want to change | |
history | View command history | ||
ln | Set links to files and folders | ln Link source Link destination | |
man | View the command manual | man command | |
apropos | Search man page content | apropos keyword | |
less | Browse text files | less file name | |
more | Browse files page by page | more file name |
Recommended Posts