This article introduces the MAC terminal display calendar Information command, provides a number of examples to illustrate the use of these two commands and the application of each parameter scenarios.
Mac system built-in commands for displaying calendars are CALs and ncal,
Tags: extended contrast command section personal connection Article option GuideHttps://www.cnblogs.com/abeen/p/4104158.htmlThe combination of several keys in Mac system can make the operation of terminal more flexible and convenient.1. Move the cursor to the beginning of the line: Ctrl + A2. Move the cursor to the end of the line: Ctrl + E3. Clear the Screen: Ctrl + L4. Search for previously used
, which can be used to filter results
ls-a | grep. BA can find hidden files containing BA, sometimes used to find. bash_profile files
SVN St | grep ^? View files that are not added in the current library
Ping-c 3 10.2.1.18ping 3 times Specify the target, and the unspecified number of times will always ping (this is not the same as Windows)
Terminal Operation Tips
Ctrl + A cursor moves to the beginning of the
Recommend a useful terminal tool for everyoneGo2shell:https://itunes.apple.com/cn/app/go2shell/id445770608?mt=12I found a lot of them before I had this tool. Open terminal commands in the current directory it's not good to accidentally discover this go2shell is very useful,Download install drag-and-drop to the toolbar, and then in which directory you need to open
-rf/system/library/extensions.kextcacheRm-rf/system/library/extensions.mkextChown-r root:wheel/system/library/extensionsChmod-r 755/system/library/extensionsDiskutil repairpermissions/Kextcache-k/system/library/extensions/3. Ctrl +o disk, ctrl+x exit4. Once the driver is moved, run it once in the terminal Sh/clean————————————————————————————————————Little TricksUse the Tab key to auto-complement commandsFor
After using the Windows command-line tool's tab auto-completion path feature, it is not customary to knock commands on Mac terminal. In fact, Mac terminal also has this function.Enter Nano. INPUTRC on the command lineEnter the edit interface of the. INPUTRC, and type the fol
System: MacPython version: 2.7\3.5\3.6Reason for demand:python2.7 (default) installed on your computer, execute python command to open Work needs to be installed python3.5, execution Python3 can command to open Later installed Anaconda, Python3 start changed to 3.6 version, want to use python3.5 will have to execute python3.5 *.py, python3 by default is 3.6 Version, some headaches Workaround:Open ' ~/.bash_profile ', add "Alias" in front of the version that needs to be opened by default,sa
user
Write username PTS/1
Mesg
Allow or deny receiving of messages
MESG N
Korn shell command
command name
function Description
Examples of Use
History
List several recently executed commands and numbers
History
R
Repeatedly executes a command that has been recently executed
R-2
Alias
To define an alias for a
PTS/1
Mesg
Allow or deny receiving of messages
MESG N
Korn shell command
command name
function Description
Examples of Use
History
List several recently executed commands and numbers
History
R
Repeatedly executes a command that has been recently executed
R-2
Alias
To define an alias for a command
Alias Del=rm-i
denies receiving messages MESG NKorn Shell CommandCommand name feature Description Use exampleHistory lists several recently executed commands and numbers historyR repeats a recently executed command r-2Alias defines aliases for a command alias alias Del=rm-iUnalias cancels the definition of an alias Unalias delOther CommandsCommand name feature Description Use exampleUname displays information about the operating system uname-aClear clears the scree
Configure the Android development environment, change bash_profile This file, finally somehow only the CD command can execute, I guess the Bash_profile file can be modified after not saving the resulting Save command is: source. bash_profileHere's my solution:1, on the command line, enter:[CPP]View PlainCopyprint?
Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/bin
This guarantees that command-line commands can be used temporarily.
The combination of several keys in Mac system can make the operation of terminal more flexible and convenient.1. Move the cursor to the beginning of the line: Ctrl + A2. Move the cursor to the end of the line: Ctrl + E3. Clear the Screen: Ctrl + L4. Search for previously used commands: Ctrl + R5. Clear the current line: Ctrl + U6, clear to the end of the current
[Turn]http://blog.csdn.net/jeanphorn/article/details/465506191. Description of the problemIt is believed that many users who have used Linux have used tree commands, which can display the directory structure as clearly as the Windows File Manager. But there is not the system itself, if necessary, Ubuntu can be installed under the following command. sudo apt-get install treeSo in Mac OS X system if you want
1. Description of the problemIt is believed that many users who have used Linux have used tree commands, which can display the directory structure as clearly as the Windows File Manager. But there is not the system itself, if necessary, Ubuntu can be installed under the following command. sudo apt-get install tree So in Mac OS X system if you want to use tree This command, you can refer to the f
When a user configures a file on a Mac OS platform and sometimes needs to configure some files in the Mac terminal, it needs to use the command to open the app app in the terminal, but there are a lot of users who don't use terminal comm
Connecting to an FTP server using a MAC terminal
Format: FTP [hostname| ip-address]
FTP 127.0.0.1#服务器询问你用户名和口令, you can enter the followingDownload files
The download file usually uses the get and mget two commands.Get
Format: Get [Remote-file] [Local-file]Transfers a single file from the remote host to the local host.
Mget
Format: mget [Remote-files]Transfer multiple files from the remote host to the
ac display hidden file Terminal command Detailed tutorial
First step: Open the terminal application.
Step Two: Enter the following command:
Defaults write Com.apple.finder Appleshowallfiles-boolean true; Killall Finder
Step three: Press the "return" key to confirm.
Now you'll see the hidden files and folders in the Finder window.
If you want to hide the original
Modify the MySQL encoding format under mac terminal -- cannot find the my-default.cnf and my. cnf, cannot find mydefault. cnf
First, make sure that MySQL is correctly installed.
1-configure the environment variable path first
1.1 open the terminal and enter: cd ~
Will enter ~ Folder,
1.2 then enter: touch. bash_profile
After you press enter to execute,
1.3 enter:
1, Iterm2Instead of native terminal tools, the theme recommends using DraculaDracula, there are various tools in the Dark Department theme, super like the dark lines you must not be missed.Quick commands for Iterm terminal :
CTRL + A: Move to the beginning
Ctrl+e: Move to end of line
Ctrl+b: Move one character back
Ctrl+f: Move forward one characte
Configure the Android development environment, change bash_profile This file, finally somehow only the CD command can execute, I guess the Bash_profile file can be modified after not saving the resulting Save command is: source. bash_profileHere's my solution:1, on the command line, enter:Export Path=/usr/bin:/usr/sbin:/bin:/sbin:/usr/x11r6/binThis guarantees that command-line commands can be used temporarily. Do not close 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.