the source file of C to form a machine language file3.1. Instruction:cc-c test.cUnder normal circumstances, a TEXT.O binary file is generated3.2. Add the boot code to the TEXT.O to make it a machine language program that can be rundirective:cc TEXT.ONormally a machine language program called A.out is generated (this process is called a link)3.3, let the operating system to high CPU execution a.out (directly in the terminal to drag a.out into, enter,
Several common terminal shortcut commands in Linux:The first can be viewed through the man Terminator, at the same time can be output, the use of man terminator>>terminator (but it is easy to shut down when it is also closed), the safe way is to use the man terminator> >terminator disown (This will assign a PID so that it will be independent).Ctrl+shift+o:split terminals horizontally, perpendicular to its w
Displays the name of the terminal or pseudo terminal
Tty
Stty
Display or reset control key definitions
Stty-a
Du
Querying disk usage
Du-k SubDir
Df
Displays the total and free space of the file system
Df/tmp
W
Displays the total information for the current system activity
W
Wen/kekemars
Mac users know that every time the computer is turned on or restarted, there will be a very special boot tone. If you want to temporarily prohibit the start-up tone, one way is to always hold down the keyboard mute button, of course you can also use the following method of using terminal commands:Open the terminal, enter the following command and return, to disable the boot tone:sudo nvram systemaudiovolume
CTRL + C terminates the current commandCTRL + L Clear screen (cursor back to the first line)CTRL + D exits the current terminal (or Exit,logout)CTRL + U will be all characters from the front of the cursorCtrl + K Delete all characters after cursorCtrl + S locks the current command terminal (pressing any key on the keyboard does not respond, the command entered during the lock is valid after unlocking)CTRL +
audio format files it supports:sudo install sox libsox-FMT-all5. OK, now you can use SOX to play the audio files on our computer.6, for example, to play all the audio files in the system, we can use this command:Play *mp37. If you want to play a particular file, then use this command:file-name.extensionLike what:Play Aqua_barbie_girl.mp3You can only play Aqua_barbie_girl.mp3 this MP3.8, when playing, we can press CTRL + C to the end of the current audio playback to go to the next audio.9. For m
Shortcut Keys available when the terminal inputs Shell commands
Edit command:Ctrl-a move the cursor to the beginning of the line Ctrl-e move the cursor to the end of the line Ctrl-l clear screen (function is the same as the clear command) ctrl-d Delete the character Ctrl-t where the cursor is located and the character before it is exchanged Ctrl-k cut the character Ctrl-u from the position of the cursor to
Detailed description of MySQL common operation commands on Linux terminal, linuxmysql
Service:
# Chkconfig -- list listing all system services # chkconfig -- list | grep on listing all started system services # chkconfig -- list mysqld # whereis mysql viewing File Installation path # which mysql querying the running File PATH (Folder address) usr/bin/mysql indicates the mysql running path. var/lib/mysql ind
Recently in the study of using Appium to do iOS automation, so began to touch the Mac system. Record a few common commands for homebrew under the Mac's Terminal
Install (requires Ruby, but usually comes with a band):ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Search:brew searchXXX 在安装之前可以先查询一下,是否有这个软件
Query: brew infoXXX mainly to see the specific information, such a
Libsox-fmt-all
5. OK, now you can use SOX to play the audio files on our computer.6, for example, to play all the audio files in the system, we can use this command:
Play *mp3
7. If you want to play a particular file, then use this command:
Play File-name.extension
Like what:
Play Aqua_barbie_girl.mp3
You can only play Aqua_barbie_girl.mp3 this MP3.8, when playing, we can press CTRL + C to the end of the current audio playback to go to the next aud
Today, a small study of the Mac terminal commands, mainly for the convenience of debugging programs, Xcode do not come ah ...Make a note here. Prevent lossPWD Current Working directoryCD (without parameters) into rootCD (folder) access to foldersCd.. Parent Directorycd ~ Back to RootCD-Returns the last visited directoryRM File name DeleteCat file name (|less) to view files under TerminalLS lists all files i
The script command in linux records that the terminal session runs scriptscreen in ubuntu or other linux. log, record the screen information to screen. log, record until exit, a good way to record the screen log hellip; www.2cto.com # scriptscreen. logScriptstarted ,...
In linux, script commands record terminal sessions running script screen. log on ubuntu or ot
Mac users know that every time the computer is turned on or restarted, there will be a very special boot tone. If you want to temporarily prohibit the start-up tone, one way is to always hold down the keyboard mute button, of course you can also use the following method of using terminal commands:By Spotlight Search and open the [terminal] program, then enter the following command and return, to disable the
Facl:filesystem Access Control ListSave additional access control permissions with file extensionsSetfacl-M: SetU:uid:permG:gid:perm-X: CancelTerminal type:Console: ConsolesPty: Physical Terminal (VGA)TTY: Virtual terminal (VGA)TTYs: Serial Terminalpty/#: Pseudo TerminalSeveral commandsWW.H.O.WhoAmIWho am ISleepLast, displays the/var/log/vtmp file, showing the user login history and System restart history-N
After installing the mobile terminal found ping command, the route and other commands can not be used, prompt command not found.Workaround: Install the support packageShell-cmds Package: Contains Killall,mktemp, Renice, Time,which commandNetwork-cmds Package: Contains Arp,ipconfig,netstat,route,traceroute commandInetutils Package: Contains FTP,INETD,PING,RLOGIN,TELNET,TFTP commandAdv-cmds Package: Contains
View DOS and Linux terminal commands without having to remember-Linux general technology-Linux technology and application information. The following is a detailed description. Are you bored with a large number of Dos commands? In fact, you don't need to spend a lot of time memorizing them.
1. Enter the help Command in dos.
2. Find the command you want to us
Watch the video on Linux-install the flash plug-in operabrowser (Use Terminal commands)-General Linux technology-Linux technology and application information. For more information, see the following. My system is now Xubuntu. Sometimes it is very slow to open Firefox. It is easy to use to install Opera, but it cannot watch the video. It is a problem with the Flash plug-in, libflashplayer that was decompress
In linux, script commands record terminal sessions running script screen. log on ubuntu or other linux systems, and record screen information to screen. log,A good way to record screen logs until exit... Www.2cto.com # script screen. logScript started, file is screen. log # ls-ltrtotal 76 omitting several lines >>>>>>>>>>>>>>>>>## exitexitScript done, file is screen. log # cat screen. logScript started on #
PWD Current Working directoryCD (without parameters) into rootCD (folder) access to foldersCd.. Parent Directorycd ~ Back to RootCD-Returns the last visited directoryRM File name DeleteCat file name (|less) to view files under TerminalLS lists all files in the directoryCP file name destination directory copy files to target directory~ stands for root such as: ~/document/cpp2/Mkdiv new Folderg++ source file name compile source files, generate a.out./file name run for example:./a.out Control+d Int
Make a note here. Prevent lossPWD Current Working directoryCD (without parameters) into rootCD (folder) access to foldersCd.. Parent Directorycd ~ Back to RootCD-Returns the last visited directoryRM File name DeleteCat file name (|less) to view files under TerminalLS lists all files in the directoryCP file name destination directory copy files to target directory~ stands for root such as: ~/document/cpp2/Mkdiv new Folderg++ source file name compile source files, generate a.out./file name run for
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.