Linux file System: Tree file system, root start, strictly case-sensitiveCtrl+alt+t Open TerminalCtrl+alt+f1 from graphical interface to terminalCtrl+alt+f7 back to the graphical interfacePWD Displays the current working directoryThe CD changes the
Linux command format:COMMAND [OPTIONS ...] [ARGUMENTS ...]Options: One or some of the features used to enable or disable commands;Parameters: The Action object of the command, providing data to the command;(1) LSDisplays a list of files under the
Linux command format:COMMAND [OPTIONS ...] [ARGUMENTS ...]Options: One or some of the features used to enable or disable commands;Parameters: The Action object of the command, providing data to the command;(1) LSDisplays a list of files under the
File Lookup:wildcard character? * Same as Windows [[email protected] bin]# find/etc-name INI? Look in the/etc directory, with the INI and the following file, [[email protected] bin]# Find/etc-name ini*[[email protected] test] #locate aa.txtCheck
1 Date command, display system date, display in format, date +%y-%m-%d 2 Cal command, display calendar, Cal month Year Cal 2 2017 3 BC Simple and useful calculator 4 Common Hotkey tab, CTRL + C, ctrl+dThe TAB key has the function of command
In the work, in addition to viewing the contents of the file, and sometimes need to count the contents of the file and find eligible content, the following describes the statistics and retrieval of the two command tools.1,WC command2,grep commandOne,
Recently learning Linux, to avoid some commands to forget, so here to record:Linux file list traversalLS-A lists all the files and folders including the hiddenLs-l listing the details of the file directoryHistory View Historical CommandsCtrl+r
First, the Directory Processing command1.mkdirThe path to the command:/bin/mkdirFunction Description: Create a new directory-P Recursive creationExample: MKDIR/TMP/FILE01The catalogue must be planned, and the command should have meaning.To make it
One, user account
Superuser: Root,uid is 0 and is the most privileged user in a Linux system.
Program User: UID is 1~499, some low-privileged users generated when some programs are installed, generally do not allow logging on to the
One, group account fileThe group account file consists of two parts:/etc/group,/etc/gshadow, which holds the group account name, GID number, group members and other information, the latter is used to save the group account of the encrypted string,
CD CD. Previous level CD-Previous CD ~ root directoryLS -a lists all files (including hidden files)-L lists details-s list file size-T sorted by time-a lists except. and. File-r file directory for all subdirectories listed in the-S file size
1. AliasDefine or display aliasesegAlias date= ' Date ' +%f%T "'
When we enter date , in fact, it is equivalent to enter the date "+%f%T", simple and convenient;However, this alias is only valid in the current shell process, and once we
Tree: View directory Permissionsmkdir: Creating a Directory-P = parent Directory-v = verbose detailed procedureMKDIR-PV/MNT/TEST/{X/M,Y}MKDIR-PV/MNT/TEST/{A,D}_{B,C}Command line expansion:The first will create a directory:/mnt/test/x/m
Some basic common simple Linux commands, want more complex and more comprehensive commands can refer to the following documents!Friendship Share Linux Common commands Daquan: Link: http://pan.baidu.com/s/1jI3yVCa Password: IMCVPWD View current path
Linux Command Encyclopedia NOTE: Continuous update I. files and directories cd/home Enter '/home ' directory 'CD: Return to the top level directoryCD.. /.. Return to the top level two directoryCD into the personal home directoryCD ~user1 into the
The files created by Windows are \n\r ended, and Linux,mac this UNIX class system is \ nthe end.Crontab Entry ExamplesHere are some examples of C R o N T a b file entries:21* * */apps/bin/cleanup.shThe above example shows that 2 1:3 0 per night
5. Manage users and commands to set up permissions:(1) chmod: Used to change license permissions, including read, write, execute. The R file can be read. The W file can be written. X files can be executed. You can view the details of a file by [Ls-l]
6. Commands for online queries:(1) Man command: Used to query and explain the use of a command and the instructions for this command. [Name of the man command](2) Locate command: Locate files and directories.(3) Whatis command: Used to query the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.