Mkdir=make directorys= Creating a directory
Example:
Mkdir/data= creating the Data directory at the root/bottom
Ls=list= List Directory file
Example:
LS/= directory and file under Reagan/directory
Parameters:
-L (long) = long format
-D (Directorys) = view Directory
Cd=change directory= Changing directory path
Related concepts:
Relative path and absolute path:
Windows absolute Path: E:\Study\Video, the path from the beginning (drive letter)
Linux absolute path: Cat/etc/sysconfig/network-scripts/ifcfg-eth0, path from root/start
Relative path: Does not start from/root, does not start from the beginning of the path
Example:
CD/= switch to the root directory
Pwd=print work directory= Print working directory (show current path)
Touch= creating a file or updating a file timestamp
Vi=windows Notepad, simple.
Example:
VI Oldboy.txt
vim= complex editor, Shell programming or command use
echo= print out content, with ' > ' or ' >> ' to overwrite or append content to a file
Special symbols:
REDIRECT will clear all previous data in the file
>>: Append redirect, append content, append only required content at end of file
This article from "Study_osmond" blog, declined reprint!
Linux Learning Categories: Common commands (continuous update)