;/tmp/mypasswd // open for N in 2 4 6 10 13 15; do line = 'head-$ N $ file | tail-1 'echo $ line> 1 doneexec 3> -// close unset file line
------------------------------------------------------------------------
Pipeline |: sends the output of the first command to the second command for processing.Echo "123456" | passwd -- stdin rehat // This command will give 123456 to passwd for processing, the -- stdin parameter will make 123456 immediately effective as the user's RedHat PasswordLs/etc | tee/
1.which commandWhen entering a Linux command, the shell actually executes the same name command in which directory, we are not known, can be verified using which.2.whereis commandA command similar to which, Whereis is used to retrieve the file associated with a given command.3.apropos commandUse the apropos command to retrieve commands using the keyword. Apropos will use the keyword provided to retrieve the
The df command in Linux and other-general Linux technology-Linux technology and application information. The following is a detailed description. I have an AIX and Linux environment at hand. df is a frequently used system command. This small command is quite different in different environments. For example, the "-v" pa
This disk describes some of the most commonly used commands for Linux environments, including commands for SVN version control and vim editing commands. This article is original, if need reprint, please famous source: http://blog.csdn.net/qq_223274551. Directory Jump: CD2. View: LL ls3. Connect server: SSH user name @i
Common Linux commands (2) -- permission management command 1. command name: chmodwww.2cto.com execution permission: all users function description: change the file or directory permission syntax: chmod [{ugo} {+-} {rwx}] [file or directory] [mod... common Linux commands (2) -- permission management command 1. command n
A complete set of common Oracle commands
A complete set of common Oracle commands
The ORACLE tutorial is a complete set of common Oracle commands.
Chapter 1: Log Management
1. forcing
Common Linux commands (1) -- File Processing Command format: Command-option parameter example: ls-la/etc description: www.2cto. com1) when there are multiple options, you can write them together. 2) two special directories. and .., represents the current... common Linux commands (1) -- File Processing Command format: C
We can modify the/etc/bash. bashrc file (other users are in their respective directories) so that we can automatically load our custom commands when logging on to shell.
In the process of using linux, it is inevitable that a long string of commands will be bored if they are frequently typed ......
When calling some executable files, you have to write down a long
simply enters the command man and the name of the command shell will list a complete description.Standard usage:Name of the man commandTo query the description page of the LS command, enter the command: Man lsTo flip through the manual page, you can use the page UP and PAGE DOWN keys, or use the spacebar to turn back one page and use B to flip forward. To exit the manual page, enter the command Q. To search for keywords in the manuals page, enter a command/and keyword or phrase to search for, a
The IP address configuration in the Linux command line is not as convenient as in the graphic interface. we need to manually configure the IP address. The following describes several configuration methods: nbsp; takes effect immediately (expired after restart ): ifconfigeth0192.168.1.102netmask00000000255.0 nbsp; // add the IP address routeadddefau
The IP address configuration in the Linux command line is
Summary of Common commands for GDB debugging in Linux, and Common commands for gdb
Prepared by: longshike
Email: longshike2010@163.com
2016-01-05
Gdb is the default debugging tool in Linux. When compiling a program file, such as debug. c. To use gdb for debugging, you must add cc-g or gcc-g before the terminal command
Use of cp, rm, and mv commands and cp commands in Linux Command lines
The following content comes from laruence's private kitchenCopy, delete, and move Linux Command lines: cp, rm, and mvCp (copy) replicationThe cp command is used for many purposes. In addition to simple copying, you can also create a link file to comp
Common Linux commands (5) -- compression and decompression commands 1. command name: gzipwww.2cto.com execution permission: all users function description: compressed file syntax: gzip option [file] compressed format :. gzgzip can only compress files, but cannot compress directories ;...
Common Linux
Find file search commands in linux and grep file content search commands, grep Content Search
When using linux, you often need to find files. The search Commands include find and grep. The two commands are partitioned.
Differen
-i option in the passwd command to set the inactivity time of the system user. Users will not be able to log in if the user (I am using a Linuxtechi user) expires after the user has passed ' N ' Days (10 days in my case) without changing their password.Copy CodeThe code is as follows:[Email protected] ~]# passwd-i LinuxtechiAdjusting aging data for user Linuxtechi.Passwd:success[Email protected] ~]#[Email protected] ~]# passwd-s LinuxtechiLinuxtechi PS 2015-09-20 0 99999 7 (Password set, SHA512
Watch is a very useful command, basically all Linux distributions with this gadget, like a name, watch can help you monitor the results of a command, save you to manually run over and over again. Under Linux, watch is the periodic execution of the next program, and full-screen display of the execution results. You can use him to monitor everything you want. The result of the command changes, such as tail a
execution file, simply said it is just a link to the original file.The permissions of the soft link file are equivalent to the permissions of the shortcut keys, and do not affect the permissions of the original fileThe three main features of a soft link file:(1) All soft link files are identified by the letter "L"(2) All soft link files have an arrow "-" pointing to the original file(3) All soft link file permissions are lrwxrwxrwx, and the file is relatively small Hard - link files: similar to
Ln is another important command in linux. its function is to create a synchronous link for a file in another location, which can be soft link or hard link. Soft links are similar to shortcuts for windows. The following are usage methods and examples.
Ln is another important command in linux. its function is to create a synchronization link for a file in another location. when we need to use the same file in
1. Commands for managing files and directories:(1) Pwd:print working directory (print working directory), when entering PWD, requires the Linux system to display the current location.(2) CD command: The CD command is used to change the directory in which it is located. Always return to the current home directory. If you need to convert to a different directory, you need a path name. [The difference between
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.