prompt do not say here, want to modify the prompt, only need to modify the shell environment variable "ps1" (if a command needs to enter more than one line, you can set "ps2").For example, the environment variable "ps1" in the shell has been set to:ps1="There is no redundant information, only the "$" tag (the root user is the "#" tag when logged in).At this point, if you want to display the "ps1" as mentioned earlier ("[[email protected]/etc]$"), set
Programlibmagick++-dev-object-oriented C + + interface to imagemagick-development fileslibmagick++4-object-oriented C + + interface to ImageMagickLibmagickcore4-low-level Image Manipulation LibraryLibmagickwand4-image Manipulation LibraryLibreoffice-office Productivity SuitePerlmagick-perl interface to the ImageMagick graphics routinesTex4ht-latex and TeX for Hypertext (HTML)-ExecutablesTex4ht-common-latex and TeX for Hypertext (HTML)-Support filesCtioga-command-line Plotting UtilityDRUPAL6-MOD
In a Linux system, each device is treated as a file. Below I will list a few common devices and their names in Linux:
IDE hard disk /dev/hd[a-d]
Scsi/sata/usb hard disk /dev/sd[a-p]
U-Disk NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;/DEV/SD[A-P] (same as SATA)
Floppy drive NBSP;NBSP;NBSP;NBSP;NBSP;/DEV/FD[0-1]
Printer 25-pin:/dev/lp[0-2] usb:/dev/usb/lp[0-15]
Mouse NBSP;NBSP;NBSP;USB:/DEV/USB/MOUSE[0-15] ps2
interactive execution, bash displays the main prompt PS1 when it is ready to read a command, and when it needs more input for the completion of the command, a secondary command prompt is displayed ps2,bash allows you to customize these prompt strings by entering some special characters that use backslashes to escape, as shown here:\aAn ASCII bell character (07)\dDate in the form "Day of the Week" (for example, "Tue May 26")\d{format}Format is passed
can be executed
User
Machine=
COMMANDS
Jiangjunwang
All= (All)
Nopasswd:/bin/ls,/bin/touch
(b), how to configure (a chestnut)
Authorize the Jiangjunwang user to execute the ls,touch,passwd command as root, but disable the root user password change
[[emailprotected] ~]# visudo Jiangjunwang all= (Root) nopasswd:/bin/ls,/bin/touch/usr/bin/passwd [!-]*,! /USR/BIN/PASSWD root [[emailprotected] ~]$ sudo-l Matching De
current directory.Exinit: saves initialization options when using the VI editor.HOME: Save the user's root directory and go directly to the directory using the CDIFS: Specifies the shell Default domain delimiter (multiple domain separators can be specified)LOGNAME: Save Login NameMail: Save the mailbox path nameMailCheck: Mailbox Detection frequency (/s), default is 60 seconds.PATH: the directory order in which commands or script lookups are saved (frequently----and infrequently used)PS1
Section II Basic commands
Uname–r Query the Linux core version.
The file name of the device and device within Linux
IDE HDD/dev/hd[a-d]SCSI/SATA/USB HDD/dev/sd[a-p]USB Flash Disc/dev/sd[a-p]Floppy disk drive/dev/fd[0-1]Printer 25-pin:/dev/lp[0-2]USB:/DEV/USB/LP[0-15]Mouse Usb:/dev/usb/mouse[0-15]Ps2:/dev/psauxCurrent Cdrom/dvdrom/dev/cdromThe current mouse/dev/mouseTape drive Ide:/dev/ht0Scsi:/dev/st0
X window an
time, 12-hour time format!O \a: Display time, 24-hour format, hh:mmO \u: Current user's account name;o \v:bash version information;o \w: The full working directory name. Home directory will be replaced by ~;o \w: Use basename to get the working directory name, so only the last directory name is listed.O \#: The first few instructions issued.o \$: Prompt character, if root, the prompt character is #, otherwise it is $.PS2 When you use the transfer sym
: Command basic prompt, for root user is #, for normal user is $.10.PS2: Wait for the prompt, default is ">", such as SEQ \, you will see the waiting promptI personally like this: ps1= "\[\e[32;1m\][\[email protected]\h \w]$>\[\e[0m\]"For more information about PS1 settings, please visitOf course, the above environment variables I have listed are not exhaustive!Linux also provides commands to modify and view environment variables!1.echo displays an e
currently executing, and the variable ${funcname[1]}The name of the function representing the calling function ${funcname[0]}, the remainder can be and so on;$PS 4:The main prompt variable $PS1 and the second-level prompt variable $ps2 are more common, but few people notice the effect of the fourth-level prompt variable $PS4. We know that using the "-X" execution option willDisplays each command that was actually executed in the shell script, and the
function:In Python, there is an anonymous function lambda, an anonymous function that refers to a function or subroutine that does not need to define an identifier (the function name).To define a lambda expression:Lambda arguments:express #arguments parameter (can have multiple arguments) #express expression #lambda The return value is the address of a function, that is, the function object AA = Lambda Arguments:express #把的到lambda函数地址, assign a value to the variable AA view the lambda fun
other options, no special circumstances please put on the alpha multi-channel hook, other miscellaneous general Shanping slide Show image can be
To ensure good compatibility, these three items can be configured like this ("texture buffering" can be changed appropriately)
Other
Color jitter: If the previous selection is 16bit color deep words on the hook, 32bit do not have to tick
Special Game correction: Title, only for special games, the general game on the Forget
The mouse boot is a few motherboard manufacturer products supported by the boot method, first confirm that your motherboard support this feature. In addition, the mouse is the motherboard on the I/O chip control, so to implement the mouse boot, need to be set in the motherboard BIOS, into the motherboard bios, in the "Integrated peripherals" menu, find "Ps/2 Mouse power on" settings, The item's settings can have three choices: ' Left double ', ' right double ' and ' Disabled ' to wake and turn o
USB cable, if the situation is still, you can borrow or replace a hard drive test; if not, the most reliable way is to replace the mobile hard drive box early.
(3) USB interface is not compatible, this situation is relatively rare but still not ruled out.
6, do not mix the power supply line, because the mobile hard disk box power supply line exists special phenomenon, supply wire interface voltage may be different, inserted light will burn the box, heavy burn hard.
7. How to solve the shorta
remember to choose one of the best works to copy, although the beginning may be a bit difficult, but adhere to copy good works out of the effect of a general copy of the work better than a lot of good. Before copying, we should carefully observe and analyze, observe the position of the light source, observe the color distribution and observe the icon's level. It's much more efficient to start a job than to get it straight.
2. Find PSD Learning Analysis Daniel's PSD file, see how they use layer
base prompt, and for the root user is #, for the average user is $. PS2 is a secondary prompt, and the default is ">". You can modify the current command character by modifying this environment variable, such as the following command to modify the prompt to a string "Hello,my newprompt".
# ps1= "Hello,my newprompt"
hello,my newprompt
In addition to these common environment variables, many applications will add environment variables when installing
File class:1, create directory: mkdir Example:sudomkdir test2, create an empty file: touch Example:sudoTouch Test.txt3, delete files: RM Delete files do not need to confirm: RM- FCases:sudoRm- FTest.txt recursively Delete directories and sub-files: rm-r Example:sudoRm-r Test Recursive Delete directory no need to confirm at the same time: rm-rf example:sudoRM-RF Test4, moving directory (file): MV Example:sudoMV Hi.png Test5, copy directory (file): CP Example:sudoCP hi.png Test6, Change permission
finds content about B in the/home directory (that is, the current path), 7. Use the ENV command to display all environment variables. You can type env at the command prompt.The SET command displays all locally defined shell variables.8. Common environment variablesPATH: Determines to which directories the shell will look for commands or programsHome: Current User home DirectoryMail: Refers to the current user's message store directory.Shell: Refers to what kind of shell is used by the current u
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.