shopt

Alibabacloud.com offers a wide variety of articles about shopt, easily find your shopt information here online.

Some commands to be mastered in CentOS

variables matching the string oracle $ export | grep ORCALEdeclare -x ORACLE_BASE="/u01/app/oracle"declare -x ORACLE_HOME="/u01/app/oracle/product/10.2.0"declare -x ORACLE_SID="med"declare -x ORACLE_TERM="xterm" Set Global Environment Variables $ export ORACLE_HOME=/u01/app/oracle/product/10.2.011. xargs Copy all image files to an external drive $ ls *.jpg | xargs -n1 -i cp {} /external-hard-drive/directory Compress and package all jpd files in the system $ find / -name *.jpg -type f -print | x

Tool-trash-RM in Linux

Using RM to delete files in Linux will do bad things accidentally ...... For example, if you accidentally delete the system file, you may have an idea about whether to bind the RM deletion action to the garbage bin. In this case, you can find it again if you delete the System File incorrectly. I searched the internet and found someone has done this. I have reposted it for your reference. Original post in this http://www.webupd8.org/2010/02/make-rm-move-files-to-trash-instead-of.html 1. Install t

Tips for completing 10 unknown commands in Linux

fileserver To enable the programmable command complementing function to work on your terminal, you only need to execute/etc/bash_completion, as shown below: Copy codeThe code is as follows:#./Etc/bash_completionYou can also cancel the comments under/etc/bash. bashrc (for Ubuntu Linux 13.04) so that you do not need to execute the above command, Copy codeThe code is as follows:Enable bash completion in interactive shellsIf! Shopt-oq posix; thenIf [-f/u

10 Useful command lines in Linux

-completion function provides a list of write operations. $ write [TAB][TAB]bala rajjason randyjohn ritumayla thomasnisha www-data In the following example, enter the telnet command to display the available host names: $ telnet [TAB][TAB]localhost dev-db fileserver To enable the programmable command complementing function to work on your terminal, you only need to execute/etc/bash_completion, as shown below: # . /etc/bash_completion You can also cancel the comments under/

Alias, BG, bind, break, BUILTIN, caller, CD, command,

Bash,:,., [, alias, BG, bind, break, BUILTIN, caller, CD, command,Compgen, complete, compopt, continue, declare, dirs, Disown, Echo,Enable, Eval, exec, exit, export, False, FC, FG, Getopts, hash, help,History, Jobs, kill, let, local, logout, Mapfile, popd, printf, pushd,PWD, read, ReadOnly, return, set, shift, shopt, source, suspend, test,Times, trap, true, type, typeset, Ulimit, Umask, Unalias, unset, wait-Bash built-in commands, see Bash (1)Alias, B

CLOUD9 installation laravel51

1, first create your own CLOUD9 application workspace, choose PHP Environment 2, delete the generated files inside, rm README.md php.ini hello-world.php 3, installation composer -sS https://getcomposer.org/installer | php 4, move the Composer.phar to the bin directory, convenient for global use sudo 5. Create Laravel Project Composer Create-project Laravel/laravel project name –prefer-dist 6. Move the generated Laravel project's sub-files to the previous directory, and then delete the

Use the source Command in Linux

current directory, source filename. sh and ../Filename. sh is the same effect. Note that there is a space between the first vertex and the second vertex in the command (this is a good idiot's annotation, so everyone should not make a mistake ). 2. let's see what the souce command has done. let's take a look at the details of the source command. Source filename [arguments] Read and execute commands from filename in thecurrent shell environment and return the exit sta-tus of thelast command execu

Linux background execution

SIGHUP signal is sent, all processes running in the shell will be terminated, that is, the desired background execution is not implemented. In shell options, the huponexit option indicates whether to send the SIGHUP signal when the shell is exited? $ Shopt Cdable_vars off Cdspell off Checkhash off Checkwinsize off Cmdhist on Dotglob off Execfail off Expand_aliases on Extdebug off Extglob off Extquote on Failglob off Force_fignore on Gnu_errfmt off Hi

Use the globstart option in Bash in shell

directories and subdirectories.......globstar If set, the pattern ** used in a pathname expansion context will match a files and zero or more directories and subdirectories. If the pattern is followed by a /, only directories and subdirectories match. A shell script for testing and learning globstar is written as follows: #! /Bin/bashfunction show(){ for i in ** do echo $i done} cd /root/jay/echo "--------------------

Arm-Linux-GCC configuration in ubuntu10.04

Arm-Linux-GCC configuration in ubuntu10.04 First download package arm-Linux-GCC package: http://www.arm9.net/download-arm-linux-gcc-4.3.2.aspThen configure:Go to/usr/local/, copy the arm-Linux-GCC file, decompress the file, and copy the arm folder to the folder.You can also use the command line: Tar xvzf arm-linux-gcc-4.3.2.tgz-C/ Qwan @ SWD-qwan-desktop :~ $ VI. bashrc Set path: # Enable programmable completion features (you don't need to enable# This, if it's already enabled in/etc/bash. b

Shell script learning notes (1)-prerequisites

Prerequisites Check script Syntax: Bash-V test. Sh Jack Do not run. view onlyCode: Bash-n test. Sh Trace execution: Bash-X test. Sh Force variables to be declared first and then use: shopt-S-O nounset When executing the script with SH test. Sh, you do not need to set the execution right of the script in advance. The./CD. Sh sub-shell is closed immediately and then returned to the parent shell environment for execution.Use. and source will allow

10 useful command lines in Linux

to work on your terminal, you only need to execute/etc/bash_completion, as shown below: #./Etc/bash_completion You can also cancel the comments under/etc/bash. bashrc (for Ubuntu Linux 13.04) so that you do not need to execute the above command, Enable bash completion in interactive shellsIf! Shopt-oq posix; thenIf [-f/usr/share/bash-completion/bash_completion]; then./Usr/share/bash-completion/bash_completionElif [-f/etc/bash_completion]; then./Etc/b

How to use the Linux eval command

Eval can read a series of parameters and then perform them according to the characteristics of the parameters themselves. Grammar eval [parameters] Parameter description: An unlimited number of parameters, separated by semicolons. Instance Connecting multiple commands # eval Enable;ls//Connection multiple commands Enable. Enable: Enable [ Enable Alias Enable BG Enable bind Enable break Enable builtin Enable caller Enable CD Enable command Enable Compgen Enable complete Enable Compopt Enable cont

Linux bash Shell Common command collation

shell properties of environment variables Shift Set parameter down one position in turn Shopt Turn on/off variable values that control the shell's optional behavior Suspend Suspends execution of the shell, knowing that a sigcont signal is received Test Returns exit status code 0 or 1 based on specified criteria Times Displays the cumulative user and system

Linux built-in commands and external commands

1, the Linux command can be divided into internal commands and external commands:The built-in commands are memory-resident when the system is started, so the execution efficiency is high.The external command is the software function of the system, and the user is required to read the memory from the hard disk.2. Type-display Information about command type#查看当前系统的命令是否为内置命令和外部命令.3, Bash_builtinsAlias, BG, bind, break, BUILTIN, caller, CD, command, Compgen, complete, compopt, continue, declare, dir

Linux logs login time and behavior information for user accounts

Company Audit department required us to all the host system to add user behavior audit function, record user account login time and behavior information, I use a simple way to achieve the following, I briefly introduce the implementation of the method Implementation steps: 1. Create user behavior log to store directory/var/audit, Directory gives 777 permissions (because all users have to write files to this directory) mkdir -p/var/audit; chmod 777 /var/audit2, modify the system environment varia

Linux logs login time and behavior information for user accounts

??? Company Audit department required us to all the host system to add user behavior audit function, record user account login time and behavior information, I use a simple way to achieve the following, I briefly introduce the implementation of the methodImplementation steps:1. Create user behavior log to store directory/var/audit, Directory gives 777 permissions (because all users have to write files to this directory)Mkdir?-p?/var/audit;chmod?777?/var/audit??2, modify the system environment va

Shell Pattern Matching

Special characters in shell pattern matching * Matches any string (including an empty string). ? matches any single character . [...] Matches any character that is contained. Precautions:' * ' uses ' * * ' in the file name extension to match all files and 0 or more subdirectories. If you add '/' to the end of the pattern, only the matching directory and subdirectories do not match the file.[...] If a pair of characters is se

Shell all built-in commands

background to run the Ulimit Control Shell program resource enable start or close shell built-in command declare declare or show shell variable Wait wait for the process to return BUILTIN execute Shell internal command shopt display and set The shell Operation option Exit exits the current Shelljobs display task List and task status in Linux help display the history command logout exit the currently logged on Shellexport setting or display the system

The use of the Man handbook in Linux

....Way Two#man Help, execute this command and get a list of all built-in commands and how to use itman helpThe query results are as follows:Bash_builtins (1) Bash_builtins (1) NAME bash,:,., [,AliasBgBindBreakBuiltinCallerCdcommand, Compgen, complete, compopt,ContinueDeclareDirsDisown,EchoEnableEvalExecExitExportFalseFcFgGetopts,HashHelpHistoryJobsKillLetLocalLogoutMapfilepopdPrintfpushd, pwd, read, readonly, return, set, shift, shopt, source, suspen

Related Keywords:
Total Pages: 8 1 .... 4 5 6 7 8 Go to: Go

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.