heard of. But I thought that since I was trying to hide the file, the goal was not to like others to find out, of course, the complexity is better. The MV command is used to move the file, but if it is still under the same path, it is usually named "." In the Mac. The beginning of the file is a hidden file, so we can use the MV command to achieve file hiding. For example, there is a file named tool, I want to hide, you should go to the tool path, suc
Tags: dir directory esc body ACK BSP Primary directory page common commandsBecause very little command line, old despised, so today record a common command line:CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory separator./Current Directory.. /go to the top level directoryLS Displays the current directory so the filemkdir Creating a new directoryRmDir Delete Empty directory, note is empty directoryV
installed an incorrect display driver), press F8 at startup, start with the-S parameter, and then enter the command Mount-UW/
Get PermissionsIn order to prevent misoperation and damage to the system, if the user does not have the permission to operate important files of the system, the user must first obtain the root permission.: "Sudo-S"Then enter the password. When you enter the password, there is no echo and no star number. Just press Enter.The following are some common
CD Switch working directory. Represents the current directory.. Represents the top-level directory of the current directory/root directory/directory separator./Current Directory.. /go to the top level directoryLS Displays the current directory so the filemkdir Creating a new directoryRmDir Delete Empty directory, note is empty directoryVim xx open xx file, if not created xx file, and pick to edit pageI just entered the editing page is not editable, so I can edit the inputESC will exit edit mode
40 useful Mac OS X Shell scripts and terminal commands
There are a bunch of terminal commands under Mac OS x. I have classified these commands in a simple way. Many
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 m
Find a better explanation of the command under the Mac Terminal document, paste the full text here, so as not to lose (the original text here):Mac Terminal command line "one" Bash terminal settings1. Environment variable SettingsThe first thing to know is what kind of shell
-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
One, what is UltraEditI think it's a programmer, and the code knows what Urledit is. We are going to use Linux and have a very famous editor gedit in Linux, which allows us to enter gedit XXX in the terminal. You can edit the software by entering the visual window.Gedit can also be used on Macs, but gedit. There's a better software UltraEdit on Mac, but how do we use gedit as a command to edit any file?Seco
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 disab
-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
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
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
script once.1. Run nano/clean in the terminal2. paste the following code into Nano.Rm-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. Press Ctrl + O to save the disk, press Ctrl + X to exit4. Run sh/clean once on the
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
Mac Terminal command:1.root Permissions$sudo Su-2. Navigate to the specified folder location$CD/users/Computer Name/desktop (navigate to Desktop)3. Create a new Folder$mkdir folder name4. Program installation$PIP Install program nameOr$brew Install program name5. Create a virtual environment$pip Install Virtualenv$VIRTUALENV Environment NameOr$python-m VENV environment name6. Delete files (in this directory
Mac terminal command for displaying/hiding files in the Mac OS X operating system of apple, there are many ways to set whether hidden files are displayed. The simplest is to enter commands on the Mac terminal. The command for disp
directive: SSH [email protected]Case: wangmingdemacbook-pro:~ xxxxxxxxxx$ ssh [email protected]The authenticity of host ' xxxx.net (xxx.xxx.xxx.xxx) ' can ' t be established.RSA key fingerprint is 13:82:21:f3:47:ac:15:44:f5:d0:c4:65:a0:5c:cc:06.Is you sure want to continue connecting (yes/no)? YesWarning:permanently added ' xxxx.net (xxx.xxx.xxx.xxx) ' (RSA) to the list of known hosts.[email protected] ' s password:The following operation instructions are the same as the putty.Use
Entering shortcut commands in the terminal can improve productivity while keeping a few commands in mindHow to do:First edit in the ~/directory. Bash_profile This hidden file, if you want to directly double-click this file to open the editor, please enter it in the terminalMac Show hidden files command defaults write Com.apple.finder appleshowallfiles-bool trueAt
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.