View System IP Linux:ifconfig/IP a windows:ipconfigVI: Create a file and editTouch: Create an empty filemkdir~/a Create a folder named a in the user's home directory-p Create a multi-tiered folder~/a b C Create multiple folders in the same directoryMVa.log b.log Rename a.log to B.log A.log b/move the A.log to the B folderCPA.log b/A.log copying A.log to the B folder-R a/b/Copy the A folder to the B folderCatA.log Viewing the information in A.log MoreA.log page to view information in A.log LessA.log forward and backward View information in A.log (page up with the PageUp key and PAGE down with the PageDown key)Tail-F A.log Real-time view of information in A.log (not displayed when the file is renamed and deleted)-F A.log Real-time view of information in A.log (files are retry when renaming or deleting content)-200f A.log Real-time view of the last 200 lines of information in A.log>/>> >A.log covering content to A.log>>a.log Append content to A.logalias a='Ls-al'define an alias environment variable for a global/etc/Profile Source immediate effect environment variable personal~/.bash_profile/. BASHRC source Immediate effect environment variableRMA.log Delete a.log, need to confirm-F A.log Delete A.log, no confirmation required-RF A/Delete a directory, no need to confirm history! -executes a command with number 70 in Histroy user useradd add user-G Main group (single)-G Slave Group (multiple possible)-u Specify user uid Userdel delete user-r Delete User and delete home directory usermod Modify user-a append to the original user's information/etc/passwdUser Information Save fileIDView user Information user groups Groupadd add user groups-g Specify user group GID groupdel Delete user group Groupmod Modify user group/etc/Group user groups information save file|pipe character, the output of the previous command as input to the next command Help/Manshlep Command Help documentationMansCommand Man documentpasswdset a password for the user (does not display the password entered)Echo "Password"|passwd--stdin Oracle (displays the password entered)su suSwitch Userssu-Switch User execution Environment variables and switch home directorysudo/etc/sudoer Temporary Authorization root privilegesPS PS-ef |grep SSHto view a process named SSHKill Kill-9Kill ProcessKill-9$ (pgrep-fSSH) kills all processes related to SSH netstat netstat-NLP |grep SSHTo view the port number of SSH
Lesson 02-linux Basic Command (i)