Linux shortcuts and main commands required for Software Testing

Source: Internet
Author: User
For software testing, you need to master the Linux shortcut keys and main Commands-general Linux technology-Linux programming and kernel information. The following is a detailed description.

Switch to the first text terminal. In Linux, You can have up to six different terminals. This command means: "Hold down at the same time And press And then release all the keys ".

(N = 1 .. 6)

Switch to the nth text terminal. (You can also use the command chvt n, which is not frequently used. n refers to the nth text terminal ). In a text terminal (not in the X Window), you can also simply use You do not need Key.

Print the name of the terminal you are using. If you want to know the name of the terminal, you can use the command fgconsole.



Switch to the first graphic user interface (generally, X-window is on the seventh Terminal)

(N = 7 to 12)

Switch to the nth graphic user Street. By default, the first X-Window runs on 7th terminals, and there is nothing from 8th to 12th. Of course, you can start these graphic user interfaces one by one.



(In a text terminal) You can use TAB to automatically complete the command, or display all the options. This shortcut key is really easy to use and you will find it can save you a lot of time.



(In the text terminal or in the X Window) scroll and edit the previously entered command. Press Execute a history command



Rollback



Scroll terminal output. The logon prompt also works, so you can use it to roll back the startup information. The memory size of your video card determines how much content you can roll back.



Rollback terminal output

<+>

(In the X Window) change the screen resolution rate of X Server (if you set X server to have multiple different screen resolution rates ). For example, for my standard SVGA card and display, there are the following setting lines in the file/etc/X11/XF86Config: (starting from the default, to the maximum virtual screen resolution rate that can be supported)

Modes "1024x768" "800x600" "640x480" "512x384" "480x300" "400x300" "1152x864" Z

Of course, first, I must set up my X server. You can use using Xconfigurator and xf86config, or manually edit the file:/etc/X11/XF86Config. XFdrake (Mandrake is configured on the graphic user interface ). You can also refer to the xvidtune and xvidgen commands.

<->

(In the X Window) change the screen resolution rate of the X server to the previous setting.



(In the X Window, KDE) Close the window to which the cursor is to be directed (the Mouse shape will change ). You can also use the xkill command (on the X terminal) to achieve the same effect. It is particularly useful when a program window is hung.



(In Window X) terminate the current window X service. If the X Window does not exit normally, you can use it.



(Applicable to text terminals) shutdown and restart. This is a normal shutdown command on a text terminal. Do not press the reset key on the computer to shut down and restart it!

C

Terminate the current process (for general small text-Mode Applications)

D

(Enter in a blank command line) to exit the current terminal. Run the following command.

D

Send the end of the file to the current process. Do not press twice or you will leave yourself out of the system.

S

Stop terminal transmission

Q

Start transmission from the terminal. If your terminal suddenly stops responding inexplicably, refer to the previous command.

Z

Send the current process to the background for processing.

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.