= None ): deletes the specified character (space by default) at the end of a string ). string = "My name is yue. "print (string. rstrip () # output: My name is yue. # strip (self, chars = None): removes the character specified at the beginning and end of the string (space by default ). String = "My name is yue. "print (string. strip () # output: My name is yue. # splitlines (self, keepends = False): returns a list containing rows as elements, separated by rows ('\ r',' \ r \ n', \ n, if the kee
, but will read from standard input
[1] 3894
Chen123 @ ubuntu :~ $
Enter
[1] + Stopped cat> temp. foo
Chen123 @ ubuntu :~ $Fg % 1Make Job 1 a foreground job
Cat> temp. foo shell tells us which job is in the foreground
Hello, worldEnter one line followed by the file terminator (ctrl + D)
Chen123 @ ubuntu :~ $Cat temp. fooCheck that this row has been sent to a file
Hello, world
Chen123 @ ubuntu :~ $
Shell starts the cat process in the background. but wh
Fg, bg, jobs, amp;, nohup, ctrl + z, ctrl + c Command 1, amp; at the end of a command, you can put this command in the background for execution, such as watch-n10shtest.sh amp; # every 10 s in the background to execute a test. sh script 2, ctrl + z can put a command that is being executed on the foreground to the background and is paused. III,
Fg, bg, jobs, , nohup, ctrl + z, ctrl + c command
I ,
At the
In the near future, some projects of multi-application (multi-task) switching in the command line (Terminal Interface) of the embedded Linux system need to run multiple applications at the same time, but I have no idea about this. I always understand it in a fragmented manner. in the past, I had no progress because I had not summarized it comprehensively. Now, we have learned that many applications (multi-task) switching of the East embedded Linux system on the command line (Terminal Interface)
For more information, click here.Implementation Using VB codeReference: None, part: NoneDesign: add a CommandButton in the lower right corner of Form1. The default name is Command1, and the AutoRedraw attribute of the form is set to True.Form file 1: Form1Option ExplicitPrivate mBom As Collection 'this is the Collection of entriesPrivate mBomReturn As Collection 'this is the exit set, not processedPrivate mBomReturnLast As Collection 'this is the set of egress, which has been process
[7m',#Reverse Display - } the + ifFcolorinchFG: Atext=fg[fcolor]+text+fg['End'] the ifBcolorinchBG: +Text = Bg[bcolor] + text + fg['End'] - ifStyleinchST: $Text = St[style] + text + fg['End'] $ returnText3.1 How to useFrom color import ColorsPrint (Colors (' text content ', ' Font color ', ' backgr
terminal is not logged on, run getty. And no other process uses the tty1 terminal ):
$ Ps-t tty1
PID TTY TIME CMD
1524 tty1 00:00:00 getty
(C). You can use the shell tty command to identify the currently used terminal:
$ Tty
/Dev/pts/0
(D). stty-set tty, change and print terminal line settings
The $ stty-a command is used to check and modify the communication parameters of the current control terminal. UNIX provides an important control method for keyboard input and terminal output. You can u
() quit = tkinter. Button (top, text = "hello world! ", Command = top. quit) # create a function button (quit), instead of the tag quit. pack () # display control tkinter. mainloop () # Run this GUI Program
Output result
Label and Button controls
Combined with the above two cases, including both Label labels and Button buttons
Import tkinter # contains the Label and button, and the Label and Buttontop = tkinter. Tk () hello = tkinter. Label (top, text = "hello world! "). Pack () quit = tkinte
end signal is sent to the control process.Tcgetpgrp, tcsetpgrp, and tcgetsid Functions
# Include
Pid_t tcgetpgrp (int fd );
Int tcsetpgrp (int fd, pid_t pgrp );
The tcgetpgrp function returns the ID of the process group that calls the foreground process. The foreground process group is associated with the terminal opened on fd.
If a process has a control terminal, the process can call tcsetpgrp to set the foreground Process Group ID to pgrp. fd must reference the control terminal of the sessio
In the near future, some projects of multi-application (multi-task) Switching in the command line (Terminal interface) of the embedded Linux system need to run multiple applications at the same time, but I have no idea about this. I always understand it in a fragmented manner. In the past, I had no progress because I had not summarized it comprehensively. Write down what you have learned and add it at any time. If you see this article and find that my understanding is incorrect, please correct i
and copy it to the clipboard.
Ctrl + u: Delete the character before the cursor and copy it to the clipboard.
Ctrl + y: copy the content of the clipboard and insert the cursor position
Ctrl + _: roll back and modify.
Ctrl + t: two characters before the cursor is exchanged.
Iii. execution model:
The Shell execution environment is a theater. The theater has a foreground and background. There are many repertoire that can be performed on the stage, and there is only one repertoire (
Solution for obtaining client MAC address for PHP website
Now there is a PHP website, want to get access to the customer's MAC address, which Danale have any good solution, please tell my brother, thank you.
------Solution--------------------
..................
This is impossible.
All you can get is the client's IP address, browser information.
The MAC address is definitely not available unless you make the client-side security control ...
------Solution--------------------
Unless the executi
Schedule command:crontab,at,foreground process:job,fg,bg,nohup14.1.crontabFeature: A command similar to Windows scheduled task, very powerfulSyntax:crontab [-u user] Filecrontab [-u user] [-l |-r |-e] [-I.] [-S]Common options:-U: User name, only the root user can perform tasks, create, modify, delete-e: Edit crontab file-L: View crontab file contents-r: Delete crontab fileCrontab's DomainHere are the fields:1th Column min 93 in the 2nd hour (0 means m
Suppose you find that a program running in the foreground takes a long time, but you need to do something else, you can use CTRL-Z to terminate the program, and then you can see the system prompt:[1]+ stopped/root/bin/rsync.shThen we can schedule the program to execute in the background: (the number behind BG is the job number)#bg 1[1]+/root/bin/rsync.sh Use the Jobs command to view the tasks that are running:#jobs[1]+ running/root/bin/rsync.sh If you want to bring it back to the foreground, you
used to refer to).
sudo apt-get^intall programname
Now you can double-click the arrow keys and insert "s" into the install.If you want to copy the text from the browser to the terminal, you can use the shortcut "SHIFT + Insert".2. SUDO!!If you do not know this command, I think you should thank me, because if you do not know, every time you enter a long list of commands to see "Permission denied" after the pain will certainly be unbearable.
Sudo!!
How to use sudo! Ver
http://blog.csdn.net/pipisorry/article/details/23376005Job Management Job ControlWhen you log in to bash, you want to copy files, search for data, compile on one side, and write vim programs while you're on the go! Of course we can repeatedly log in to the six command-line terminal environment, but can also be reached within a bash.The management of job control throws instructions directly into the background of "execute" throws "current" work into the background "pause": [Ctrl]-z[1]+ Stopped V
Light:http://www.vimninjas.com/2012/09/14/10-light-colors/Dark:http://www.vimninjas.com/2012/08/26/10-vim-color-schemes-you-need-to-own/Introduction to Color scheme configuration:Http://www.mamicode.com/info-detail-470644.html/usr/share/vim/vim74/colors:Oceanlight.vim:"Vim Color File"Maintainer:håkan Wikström "Last change:2005-01-06"version:0.1"URL:"originally based on Oceandeep by Tom Regner (Vim script #368)""" InitSet background=lighthighlight Clearif exists ("syntax_on ")Syntax Resetendiflet
Fg
Set foreground color
Font
Set Font size
Height
Sets the display height, if this item is not set, its size to fit the content label
Relief
Specifies the label near the border of the cosmetic decoration, the default is flat, can be set parameters;Flat, Groove, raised, ridge, solid, sunken
Width
Sets the display width, if this item is not set, its size to f
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.