relevant properties of the directory itself, typically used with-L.-R: Reverse mode display-R: Recursive display-rw-r--r--. 1 root root 41364 June Install.log-,d,l,b,c,p,sNumber 1: Number of times a file has been hard linkedLeft Root: Owner of FileRight root: Group of files41364: Siize of filesJune 14 14:32: Last modified time for a fileInstall.log: File nameFile View commands: Cat, TACCat: ForwardCat/etc/fstabCat/etc/fstab/etc/issueTAC: Reverse Orde
directoriesLs-l/bin/login file Propertiesls-ld/etc/ Directory Properties(2) Change of file ownership:chown and chgrpsudo chown lewis:root days to Change The owner of the file days to Lewis, the group to the root Group (3) sudo chown guest days only changes the owner(4) sudo chown:nogroup days change the genus group to Nogroupandretain the master setting(5) sudo chown-r Lewis iso/ will iso/ and all of its files to the user Lewis(6) Linux provides a single command chgrp to set the genus of the f
Mac basic commands Daquan basic commands 1. list file ls parameter directory name example: see what is in the driver Directory: ls/System/Library/Extensions parameter-w display Chinese, -l detailed information,-a includes hidden files 2. Conversion directory cd example: Thin
characters in the sample table
[: Digit;] Any number, which is equivalent to 0-9
[: Lower:] any lowercase characters
[: Upper:] Any uppercase letter
[: Alpha:] any case letter
[: Alnum:] any number or letter
[: Blank:] Horizontal white space character
[; Space:] Horizontal or vertical whitespace characters
[: punct:] Punctuation
Absolute path: Starting with a forward slash, the full file location path can be used for any time you want to specify a file name
Relative path: Sp
Basic linux commands-general Linux technology-Linux technology and application information. For more information, see the following section. 1. view the current working directory
# Pwd (print working directory), you can see your current full directory path
2. Change the Directory
# Cd where
Cd is returned to the initial directory when the user logs on.
Cd-is used to return to the initial directory at login.
--SYSTOHC set the hardware clock to the current system time if one of the times is wrong, we can modify it by the above command. [[email protected] hzh]# Hwclock--hctosys Set the system time corresponding to the hardware time.[[email protected] hzh]# Hwclock--SYSTOHC set the hardware time corresponding to the system time. If two times is wrong, we can set the time ourselves [[email protected] hzh]# hwclock--set--data= "month/day/year: minutes: Seconds"Yum related operations:Yum install Yum check
detailed information of a user account
(3) user, w, who -- query the user information currently logged on to the host
Finger: lists user logon names, terminals, logon times, and personal information.
W: lists user names, terminals, executed commands, and other statistical information.
Who: List user name, terminal, logon time, source location, and other information
Users: lists user name information only.
Routine basic maintenance commands for Oracle RAC
Status of all instances and services
$ Srvctl status database-d orclInstance orcl1 is running on node linux1Instance orcl2 is running on node linux2
Status of a single instance
$ Srvctl status instance-d orcl-I orcl2Instance orcl2 is running on node linux2
The status of the global Naming Service in the database
$ Srvctl status service-d orcl-s orcltestServi
Common basic commands in Linux-ls favoritesThese are frequently used and powerful commands in Linux, but although you may be using these commands every day, I believe you do not fully understand these commands. If so, then you will surely gain something after reading. Let's
(i). Command aliasesAlias is used to get the definition of aliases available to the current user[[email protected] ~]# aliasalias cp= ' cp-i ' Alias egrep= ' Egrep--color=auto ' Alias fgrep= ' Fgrep--color=auto ' Alias grep= ' grep--color=auto 'Definition alias: ~]# alias Name= ' COMMAND ' (life cycle: current shell process)Undo alias: ~]# Unalias NAMENote: If the alias and command name are the same, call the original command directly, non-alias: You can use "\command"[[email protected] ~]# alia
server
git remote add origin [email protected] Github.com:robbin/robbin_site.git # Set up the repository address
Git push-u Origin Master # client First Commit
Git push-u origin Develop # First submits the local develop branch to the remote develop branch, and the track
git remote Set-head Origin Master # Set the remote repository head to the master branch
You can also command settings to trace the remote library and the local library C code
Git branch--set-upstream Master
,--mount[=-U,--uts[=-I,--ipc[=-N,--net[=-P,--pid[=RM Deletes a container-F,--force=true Force Delete-L,--link=false delete the container's connection, but keep the container-V,--volumes=false delete the container mounted data volumeExport the container, export a container that has been created to a file, regardless of whether the container is in a running state at this time-O,--output= ""# Docker Export 929bf12bc6ea > Centos_6.4_php.tarOther common commandsDocker-h 127.0.0.1:1234-d Modify the s
MongoDB Basic Commands
After the MongoDB is successfully started, you can then open a command line window to enter MONGO to perform some operations on the database.
Enter help to see basic operations commands:
Show DBS: Displaying a list of databasesShow Collections: Displa
1048576 bytes--no-sync Ignore sync command-P output format POSIX--sync perform the sync command before obtaining the disk information-T File system typeSelect parameters:--block-size=-t-x--HELP Display Help information--version displaying version informationSee also: http://www.cnblogs.com/peida/archive/2012/12/07/2806483.html---------------------------------------------------------------------------------------------------24: Display directory and file disk usage spacedu [Options] [file]Parame
erase the data, leaving only the empty table.6. Create a Super AdministratorPython manage.py Createsuperuser# Follow the prompts to enter the user name and the corresponding password is OK The mailbox can be left blank, the user name and password must be filled# Modify user password can be used:python manage.py changepassword username7. Export Data Import datapython manage.py dumpdata appname > Appname.jsonPython manage.py loaddata Appname.jsonFor data operations See: Data import data Migration
root privileges The permissions of the cat to run All resources that the process can access depend on the identity of the initiator of the process, with normal user Tom privileges; Linux User and group related configuration files:/ETC/PASSWD:Name:password:UID:GID:GECOS:directory:shell ( user name: Password: UID:GID:GECOS: Home directory: Default shell)/etc/group:group_name:password:GID:user_list [group name: Group Password: GID: List of users w
1. Practice cmd -- Help, help cmd, man cmd, info cmd. Compare the differences and find the command usage method.
A: After my tests, taking ls as an example, ls -- help is helpful in Chinese, and display is completed and released at one time.
Help ls result Bash: Help: no help topic matching "ls". Try "Help help", or "man-K ls" or "info ls"
The returned results of man ls and info ls are basically the same.
2. What is the meaning of-L and-A of the LS command? Use the LS command to
As a common Internet user, sudden network faults have a headache. They not only affect our use, but also cause unnecessary losses, therefore, simply understanding the basic network test commands is also a good thing for us, saving time and improving work efficiency. Today, I would like to list some of the most common network failure test
is no difference between basic editing commands and Windows. Isn't it easy? When you have entered the required content, we will save it,At this point, click the ESC key to return to command mode from edit mode, first enter a colon ":", that is, hold down the SHIFT key and then press the semicolon ";" So first enter a ":", then, enter W, return,You can save the contents of our edits to the Loveletter file.
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.