to Sgid, The group to which the user who has write permission to this directory belongs to a file that is created in this directory the genus group for this directory ; Permission settings: chmod g+s DIR ... chmod g-s DIR ... Sticky For a multi-person writable directory, if Sticky is set, each user can only delete their own files; #/tmp has sticky permissions by default to prevent users from deleting non-self files permission settings: chmod o+t DIR ...
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
Basic linux commandsBasic Linux commands (all files)Command Format:Command [Option] [parameter]Note: Use spaces to separate commands, options, and parameters. The limit can only be 256 characters.HelpMan manual eg. man
Man command/function name/header fileLs list content list directory content (windows: dr)
Ls-a displays all files (including hidden files, which u
After reading some basic commands in the vimtutuor tutorial today, I wrote something that might be important... After all, I have not written it in vim.ProgramAnd...
In vim, the mouse is like a fish without water. It is not suitable at all. Every time I habitually click to delete the desired place. You can imagine ....
1. Delete and insert commands: DW: de: d
Several Basic commands in SSH Software
Directory:1. BasicInstructions/basic2. wget/download Tool3. Crontab/scheduled task4. tar/tar.gz/compressed file5. vi/Editor
Cd [directory name] conversion pathCd .. back to the parent directoryLs displays all files in the current directoryRm [-r]-f [] [file name] delete a file, and add [-r] to delete all the sub-files in the file, for example, rm-rf [abc] deletes the a
Con1, the second is Con2, the third layer is Con3For example, all files under the display directoryfilelist= ' ls $dir 'for filename in $filelistDo#echoDone————————————Debugging of shell scriptsSH-NVX script.sh-N Do not execute script, check syntax error no problem, no display-V Print script to screen before execution-X Displays the contents of the script used to the screen = = Print execution track————————————————#用mv取代rmVI. BASHRCMkdir-p ~/.trash #加到文件尾Alias Rm=trashAlias R=trashAlias rl= ' l
the background, only in the current shell can view the Jobs Role: See how many commands are currently running in the background FG Role: Move the process to the foreground run BG Role: Move the process to the background run instance: [[emailprotected]~]#jobs[[emailprotected]~]#ddif=/dev/zeroof=/ dev/nullbs=1gcount=100^z[1]+stopped ddif=/dev/zeroof=/dev/nullbs=1G count=100[[emailprotected]~]#cat/dev/zero>>/dev/null^z[2]+ Stopped c
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 search for commands that have been executed in the pastFirefox foreground runFirefox background RunJobs view the currently running jobPS View the current system's ev
] ~]# readonly myvar= "How is it?" [Email protected] ~]# readonly declare-r myvar= "How is it?"(10). I/O redirection and pipingInput data flow: Standard output redirection:[Email protected] tmp]# echo "How IS Is?" > Demo #覆盖 [[email protected] tmp]# echo "How is old is you?" >> dem o #追加Standard Error Output redirection:[Email protected] tmp]# echoooo "How is it?"2> demo #覆盖 [[email protected] tmp]# echoooo "How is old is you?" 2>> Demo #追加Merge standard output with standard error output:[Email
Options] device mount name mount pointOptions:-T File system: Add File system and other types to make mount type, can ext3, Ext4, iso9660 and other file system-O Special option: You can specify additional options for mountingExample: #mount-o remount,noexec/home: Using the Noexec#cd/Home #vi hello.sh (#! /bin/bash echo "Hello") #chmod 755 hello.sh#./hello.sh Run error prompt does not have permission to re-modify Mount command: #mount-o remount,exec/homeTo mount a disc:#ls/dev Sr0 is the system'
process
-F--file Use the compressed file name after F to follow the filename
Example:
TAR-ZXVF hehe.tar.gz-c c1/c2/c3 decompression hehe.tar.gz, extracted into the C1 directory under C2 of the current directory
TAR-ZXVF hehe.tar.gz Decompression hehe.tar.gz to the current directory
TAR-ZCVF hehe.tar.gz * Package and compress all contents of the current folder, compressed file name is hehe.tar.gz
center;border:1px solid #ddd;" width= "217" height= "" alt= "and" Spacer.gif "/>for Beginners Linux, it is necessary to master some shortcut keys, and then share some of the shortcuts used under Linux. around # # One character moves one characterCTRL + around # # A word moves a wordCTRL + A # # cursor moves to the beginning of the line+ E # # cursor moves to end of line+ U # # cursor position deleted to beginning of line+ k # # cursor position deleted to end of line+ r+ keyword # # Bring up the
and end of the file. Less//The best reading tools, less and more are very similar, but feature and powerful, less improved a lot more details, and added many features. The enhanced features are as follows. 1. Use the cursor to scroll the screen before and after the text file (or even left or right). 2. Browse files with line numbers or percentages as bookmarks. 3. To achieve complex retrieval, highlighting and other operations. 4. Keyboard operations that are compatible with commonly used
variable is set up in advance by a number of paths, when the user enters the command, the shell will automatically go to these paths to see the same command name of the executable file, the found and executed commands will be saved in a hash lookup table, you can use the hash command to view the tableWhich: View the exact location of the executable programHelpMans[] Available options{} grouping, all characters as a unit of use| Only one () must be se
To create a file in bulk:User action:File operation:Directory Operations:Cat: Preview File contents (TAC: Flashback preview file content)More, Less: Paging to view file contentsHead-n: View the first few lines of a fileTail-n: See the file after a few linesFind: Finding Filesgrep: Regular expression finds matching rows within a fileTar: Compressed files (zip, RAR and other commands can also be compressed packaging)-C: Create compressed archives-X: Unz
-type DMultiple conditional queries can be added as-a or-o,-a equivalent and relationship,-o equivalent orFind all files that are larger than 1024k in the/root directory and begin with a file name of VMFind/root-size +1024k-a-name "VM. *"Cat: Displaying and connecting the contents of a fileFor example, view network card configurationCat/etc/sysconfig/network-scripts/ifcfg-eth0MORE: Pagination View commandsFeatures like catMore support for pipe breaksFor examplels-lh/etc/*.conf | MoreHead and tai
Basic Linux commands-Common Operations, linux -----
Linux/Unix Command Format:Command name [Option] [parameter]Note: The content in [] can be omitted.Example: $ ls$ Ls-l #-l is an optionStart symbol:File Name or folder name. Current folder.. Folder at the upper level~ User main directory (Home Directory)View class:Pwd command:Usage:Path used to display the current operation location (current working path)Ex
"delete test fle"
For example: svn delete svn: // 192.168.1.1/pro/domain/test. php-m "delete test file"
Or directly delete svn test. php and then svn ci-m 'delete test file'. we recommend that you use this
Abbreviation: svn (del, remove, rm)
8,View Logs
Svn logPath
For example, svn log test. php displays all the modification records of this file and changes to its version number.
9,View file details
Svn infoPath
Example: svn info test. php
10,Comparison
Svn diffPath (compare the modified file w
Tag: Link quit recommends saving Select Msvc Enable window pathUnder Windows to use Nginx, we need to master some basic operational commands, such as: Start, stop Nginx service, Reload Nginx, and so on, I will do some simple introduction.1. Start:C:\server\nginx-1.0.2>start NginxOrC:\server\nginx-1.0.2>nginx.exe
Note: The first one is recommended, the second will keep your cmd window in execution a
Environment: when you start to learn about network services, to build a service, you need to use some basic network-related commands. This article will teach you how to demonstrate some basic network service commands.
LinuxCommon network service commands:
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.