Linux Command Description document-chown,find,vim,cat,cut (i)

Source: Internet
Author: User

    • Chown

Usage: chown [options] ... Owner [: [Group]] file ...
Or: chown [options] ...--reference= reference file ...
Change the owner and/or owning group for each file.
When using

--REFEREBCE parameter, change the owner and owning group of the file to be the same as the specified reference file
-C,--changes similar to verbose, but displays results only when there are changes
--dereference is affected by the object indicated by the symbolic link, not the symbolic link itself
-H,--no-dereference affects the symbolic link itself, not the destination indicated by the symbolic link
(This option is useful when the system supports changing the owner of a symbolic link.)
--from= Current owner: Group currently owned
Only change the owner and group of each file as specified by the option
There are people and groups. One of them can be omitted, when the omitted attribute is not
needs to conform to the original attributes.
--no-preserve-root No special treatment "/" (default value)
--preserve-root does not allow recursive operation on "/"
-F,--silent,--quiet Remove most of the error messages
--reference= reference file uses the owning group of the reference file, not the specified value
-R,--recursive recursively process all files and subdirectories
-V,--verbose displays diagnostic information for all files processed

The following options are used when the-r option is specified to set how to traverse the directory architecture.
If you specify more than one option, only the last one will take effect.

-H if the command line argument is a symbolic link to a directory, traverse the symbolic link
-L iterates through each of the encountered symbolic links to the directory
-P do not traverse any symbolic links (default)

--HELP Display this help message and exit
--version display version information and exit

If the owner is not specified, it is not changed. The owning group will not change if it is not specified, but when ":" is added, group will change to the primary group of the specified owner. The owner and the owning group can be numbers or names.

Example:
Chown root/u Change the owner of/U to "root".
Chown root:staff/u is similar to the above but also changes its group to "staff".
Chown-hr root/u Changes the owner of all files under/U and its subdirectories to "root".


  • Cat

    Usage: cat [options] ... [File] ...
    Output the [file] or standard input combination to the standard output.

    -A,--show-all equals-vet
    -B,--number-nonblank number of non-null output lines
    -E equals-ve
    -E,--show-ends displays "$" at the end of each line
    -N,--number all line numbers for the output
    -S,--squeeze-blank does not output multiple lines of blank lines
    -T vs.-VT equivalence
    -T,--show-tabs to display the ^i character as a
    -U (ignored)
    -V,--show-nonprinting uses ^ and M-references, except LFD and TAB
    --HELP Display this help message and exit
    --version display version information and exit

    If no file is specified, or if the file is "-", it is read from the standard input.

    Example:
    The cat f-g outputs the contents of f first, then outputs the contents of the standard input, and finally outputs the contents of G.
    Cat copies the contents of the standard input to the standard output.

  • Vim

    Usage: VIM [parameters] [file ...] Edit the specified file
    Or: Vim [parameters]-read text from standard input (stdin)
    Or: Vim [parameter]-T tag edit file at tag definition
    Or: Vim [parameter]-Q [errorfile] Edit the file at the first error

    Parameters:
    --After that, only the file name
    -V VI mode (same as "VI")
    -e ex mode (same as "ex")
    -S quiet (batch) mode (can only be used with "ex")
    -D Diff Mode (same as "Vimdiff")
    -Y Easy Mode (same as "Evim", no mode)
    -R Read-only mode (same as "view")
    -Z restriction mode (same as "Rvim")
    -M non-modifiable (write to file)
    -M text not modifiable
    -B Binary Mode
    -L LISP Mode
    -C compatible with the traditional Vi: ' Compatible '
    -N not fully compatible with traditional Vi: ' nocompatible '
    -v[n][fname] be verbose [level N] [log messages to fname]
    -D Debug Mode
    -n Do not use swap files, use only memory
    -r lists swap files and exits
    -R (with file name) resuming a crashed session
    -L with-R
    -A starts in Arabic mode
    -H starts in Hebrew mode
    -F starts in Farsi mode
    -T <terminal> set terminal type to <terminal>
    -U <vimrc> use <vimrc> replace any. VIMRC
    --noplugin do not load plugin scripts
    -p[n] Open N tabs (default: one per file)
    -o[n] N windows open (default: one per file)
    -o[n] with-o but vertically split
    + Jump to end of file after startup
    +<lnum> Jump to section <lnum> line after startup
    --cmd <command> Load any VIMRC file before executing <command>
    -C <command> Execute after the first file is loaded <command>
    -S <session> execute file after loading first file <session>
    -S <scriptin> commands from file <scriptin> read in normal mode
    -W <scriptout> append all input commands to file <scriptout>
    -W <scriptout> Write all input commands to file <scriptout>
    -X Edit encrypted files
    --startuptime <file> Write Startup timing messages to <file>
    -I <viminfo> use <viminfo> Replace. Viminfo
    -H or--help print help (this information) and exit
    --version print version information and exit

  • Find

    Usage: Find [-h] [-l] [-P] [-olevel] [-D help|tree|search|stat|rates|opt|exec] [path ...] [Expression]

    The default path is the current directory; The default expression is-print
    An expression may consist of the following ingredients: Operators, options, test expressions, and actions:

    Operator (the priority is decremented;-and is used by default when nothing is specified):
    (EXPR)! Expr-not EXPR expr1-a EXPR2 expr1-and EXPR2
    Expr1-o EXPR2 expr1-or EXPR2 EXPR1, EXPR2

    Location options (always true):-daystart-follow-regextype

    Normal option (always true, specified before other expressions):
    -depth--help-maxdepth levels-mindepth Levels-mount-noleaf
    --version-xdev-ignore_readdir_race-noignore_readdir_race

    Comparison test (N can be +n or-N or N):-amin n-anewer file-atime n-cmin N
    -cnewer file-ctime n-empty-false-fstype type-gid n-group name
    -ilname matching pattern-iname matching pattern-inum n-ipath matching pattern-iregex matching mode
    -links n-lname Matching mode-mmin n-mtime n-name matching mode-newer file
    -nouser-nogroup-path Pattern-perm [+-]mode-regex PATTERN
    -readable-writable-executable
    -wholename pattern-size N[BCWKMG]-true-type [BCDPFLSD]-uid N
    -used n-user Name-xtype [Bcdpfls]
    -context context

  • Cut

    Usage: cut [options] ... [File] ...
    Outputs the specified portion from each file to the standard output.

    The long option must use parameters that are also required for short options.
    -B, the--bytes= list selects only those bytes specified
    -C, the--characters= list selects only those characters that are specified
    -D,--delimiter= delimiter uses the specified delimiter instead of a tab as the area demarcation
    -F,--fields=list select only these fields; Also print any line
    that contains no delimiter character, unless
    THE-S option is specified
    -N with-b: Don ' t split multibyte characters
    --complement the selected byte, character, or field
    -S,--only-delimited do not print lines that do not contain delimiters
    The--output-delimiter= string uses the specified string as the output delimiter, and the input is used by default
    The delimiter
    --HELP Display this help message and exit
    --version display version information and exit

    Use only one of the f-b,-C, or-F. Each list is made specifically for one category, or you can use commas to separate
    Open the different categories to display at the same time. Your input order will be read sequentially, and can be entered only once.
    Each parameter format represents a range of the following:
    n the nth Byte, character, or field from the beginning of the 1th number
    N-All characters, bytes, or fields from the nth start to the end of the line
    N-m all characters, Bytes, or fields from nth start to M (including the first m)
    -m all characters, Bytes, or fields from the beginning of the 1th to the first m (including the first m)

    Read from standard input when there is no file parameter, or if the file does not exist


This article is from the "Mylinux" blog, make sure to keep this source http://mylinuxlife.blog.51cto.com/4706737/1616074

Linux Command Description document-chown,find,vim,cat,cut (i)

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.