Shell: The user interface of the system, which provides an interface between the user and the kernel, divided into the following two categories. Gui:gnome, KDE, XFCECli:sh, CSH, ksh, bash, tcsh, zshProcedures and processesProcess: In each process it appears that only the kernel and the current process exist on the current host | | A process is a copy of a program, and a process is a program execution instanceUser working environment:Bash:# Super Admin
Commands to learn in this section:history,alias,ualias,\cmdSkills learned in this section:Features of BashCursor JumpView command HistoryThe use of command history tipsTo alias an orderCommand substitutionFile name wildcard characterShell: ShellGui:gnome, KDE, XFCECli:sh, CSH, ksh, bash, tcsh, zshProcess: In each process it appears that only the kernel and the current process exist on the current hostA proc
We know when we use the mouse to click, or enter a command, the system will play to help us complete a task, then when we click on a link, the system is how to know to complete the corresponding operation? This is done through the shell.So what is a shell?The shell is an interface between the user and the operating system through which the shell accepts commands from the user and invokes the appropriate application to call kernel to handle the corresponding work.There are several types of shells
Bash shortcut commands are stored in Bashshell. Note the following shortcut keys to greatly improve the efficiency of your command line operations. Edit command Ctrl + a: move to the beginning of the command line Ctrl + e: move to the end of the command line Ctrl + f: forward by character (right) Ctrl + B: by pressing the bash shortcut key command in Bash shell,
is the first character of the IFS default parameters2) [email protected]: similar to * asterisk. The difference is that we don't refer to IFS3) $#: Represents the number of parameters4) $?: Executes the return value of the previous instruction5) $-: Option parameters for the recently executed foreground pipeline6) $$: The process ID itself7) $!: PID to perform the previous background instruction8) $_: Shows the last command executedBash shortcut keysEmacs StyleCtrl+p: Arrow key on ↑CTRL + N: Un
Transferred from: http://www.opsers.org/linux-home/base/full-version-of-bash-keyboard-shortcuts.html#toc-3Living in the Bash shell, memorizing the following shortcuts will greatly improve the efficiency of your command line operations.Edit command
Ctrl + A: Move to the beginning of the command
Ctrl + E: Move to the end of the command line
Ctrl + F: Move forward by character (right)
Ctrl
Understanding and learning bashtable OF CONTENTS
1. Understand bash
2. Shell Variable Functions
3. Command alias and History commands
4. bash shell operating environment
5 Data Stream redirection
6 pipeline commands
1 Understanding bash
Use shell to communicate the input commands with
one word at a timeCommand history:Bash automatically logs commands that were executed in the past and caches them in memory.View command history: Historical-C: Empty command history-D + offset N m: delete m characters starting from nth command, M defaults to 1-W: Save command history to history fileWhen the user exits
$ Current process ID
RANDOM Number of RANDOM (range: 0-32767)
SECONDS Bash Shell running time, in SECONDS
REPLY select and read commands.
OPTARG
ORTIND is set by the getopt command.
UID: the User ID of the current User.
_ The last parameter used by the previous command
(2) Some common environment variables that affect Shell behavior:
The PATH command is used to search for the PATH, which is separated by a colon,
The current directory is not in the sy
Process IDRandom number (range 0-32767)SECONDS Bash Shell run time, unit is secondsREPLY Select and read commands are used and will be discussed laterOptargOrtind These two variables are set by the getopt commandUID Current User ID_ Last parameter used by the previous command(2) Some common environment variables that affect shell behavior:The path command searches for paths with colons as delimiters. Note Unlike DOS,The current directory is not in th
Course connection: command line BASH basic operations Shell1, Shell (Shell) is the intermediary between the user and the underlying operating system (usually the kernel), responsible for transmitting user commands and operations
Course connection: Basic command line BASH operations
Shell
1. Shell is an intermediary between the user and the underlying operating system (usually the kernel). It is responsible
1. What is history?
In the bash function, it can remember the commands used. The biggest benefit of this function is that it can query previous actions! So that you can know the operation steps, you can track the commands you have issued as a debugging tool!
Ii. Save History
So where is the command record? In. bash_history in the home directory! However, it shoul
Tags: Method search Edit Comm History Command bash UI Lin strLinux history command shows how to use historical instruction recordsThe history command is used primarily to display historical instruction records and to release instructions in the history record.1>
Many people who have used Linux for a period of time have already been able to play the basics of Linux in some basic ways, but without systematic learning it is easy to lack some practical skills. This series of articles describes some of the techniques that can improve the effectiveness of bash, mainly about historical command operations and some shortcut keys, so that you double your productivity at the command line, and these skills are a powerful
Histsize represents the number (number of rows) of commands that can be saved in the history list of a bash session. By default, it sets a value of not 0, for example, on my computer, it has a value of 1000.
So the command mentioned above sets its value to 0, and the result is that until you close the terminal, nothing is stored in the history record. Reme
Bash creates many built-in variables by default, which are described below.1. BASHPurpose: Displays the full path name of bash. Usually:/bin/bash or/usr/local/bin/bash.Use case: Echo $BASH2. Bash_versionPurpose: The version of Bash.Use case: Echo $BASH4 Execution Result: 4.1.2 (1)-release3. FUNCNAMEPurpose: In the functional execution period, the content of this
Bash sets vi as the default editing mode to edit the/etc/inputrc file, sets the global readline configuration, adds the following command: www.2cto.com # Ilikevimode, sets the default editing mode to visetediting-modevi # emacsmodesettings, e... bash sets vi as the default editing mode to edit the/etc/inputrc file, sets the global readline configuration, and adds the following command: www.2cto.com # I like
Living in the Bash shell, memorizing the following shortcuts will greatly improve the efficiency of your command line operations.Edit command
Ctrl + A: Move to the beginning of the command
Ctrl + E: Move to the end of the command line
Ctrl + F: Move forward by character (right)
Ctrl + B: Move back by character (left)
Alt + F: Move forward by word (right)
Alt + B: Move back by word (left)
Ctrl + XX: Moves between the be
One of the basic features of the bash shellFirst, the Order historyBash records the command that the user executed in the shell session in the buffer, and when it exits normally, it is recorded in the current user's home directory. Bash_history;Environment variables:Histsize: The number of records in the command history;Histfile: Command history file path;Histfil
process it appears that the current host has only the kernel and the current processshell--Child Shell Pstree ViewBash Features:1. Command historyView command history: Historical-C: Empty command history-D OFFSET [n]: Delete the specified location history command-W: Save the Command history to the
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.