Mac OS X is based on FreeBSD (UNIX. However, we found that many UNIX files and directories, such as/etc,/var, And/bin, were not found. In fact, these files and directories are all hidden by the system. If you need to access or modify these files, you can only use the "terminal" and access the
I have been studying GWT these two days, using a Mac notebook.
As a result, JDK source files are required for GWT compilation, but SRC is not found after half a day. Jar
After searching online for a long time, I finally found a solution.
1. Download the Java developer package from connect.apple.com. Then install.
2. Run the find command to find SRC. jar.
Find/library/Java/javavirtualmachines/-name SR
"./scripts/lib/*"-newer $tmpfile-execTarrvf $bak _file {} \; * RM$tmpfile $ Panax Notoginseng if[-F $bak _file]; Then - Echo "backup file: $bak _file" the fi +#ls-L $bak _folderCall the Shel script:1#!/bin/SH 2Src_folder="/code/git/worksystem/src/main/webapp"3Bak_folder="/users/cnblogs/documents/b2bweb"4Last_modify_date="20151028"5Bak_filename="Root.tar"6 7 SHBackup_f.SH$SRC _folder $bak _folder $last _modify_date $bak _filenameThe original also used find command, have been used, but suddenly i
a 、、、、、 Mac about error---> You cannot copy the item "" because its name is too long or the character is invalid on the volume of the destination----> specific actions--
Open the Terminal (terminal) application.
Type: sudo rm-rfNote: Type a space after "-RF". The command will not execute without a space. Do not press the Return key before step 6.
Open your trash.
From the Edit menu, choose Select All.
Drag all of the contents of the T
If the file or directory has an extended attribute, the LS command, when executed with the-l option, is appended with a character @ after the permission field.If the file or directory has extended security information, when the LS command is executed with the-l option, a character + is appended to the Permissions permission field.
If the file or directory has extendedAttributes, the Permissions field printed by The-l option was followed byA ' @ ' character. Otherwise, if the file or direct
Turn on the Mac terminalAssume that the remote VPS command is connected via SSH.SSH [email protected]194.10. 10.23(Description: 92322 means port number, the general VPS port number is 22 by default)Then the command to copy the local file to the terminal is as followsScp-p92322/home/admin/a.log [email protected]194.10. 10.23:/opt/wwwSpecial Note: This place-p92322 letter must be capitalized yo(Note: Copy the A.log file to the server/opt/www directory)
You have node installed on your Mac. JS, through the terminal command which node to view the file path to the /usr/local/bin/node directory, but in the Finder can not find this directory.The reason is that the Unix system folder is hidden by default under Mac, so you need to show hidden folders by command as follows:Enter the command in terminal:Show Files:Defaults write Com.apple.finder Appleshowallfiles-b
Mac disk (removable hard disk) repairMac on the exFAT format of the mobile hard disk, do not know what the reason, unable to load the windows can be used normally.There are two sets of disk repair methods on your Mac,-Disk Utility-fsck (command line)See http://support.apple.com/zh-cn/HT203176 for details.However, the use of 磁盘工具 repair failedSo try the fsck fix, terminal\> diskutil list #显示磁盘信息\> /dev/di
Use VI in Mac to modify binary files1. First edit this file in binary modeVi-b datafile2. Use XXD to convert to 16 binary:%!xxdThe text looks like this:0000000:1f8b 0808 39d7 173b 0203 7474 002b 4e49 .... 9..;.. Tt.+ni0000010:4B2C 8660 eb9c ECAC c462 eb94 345e 2e30 K,.. 4^.00000020:373b 2731 0b22 0ca6 c1a2 d669 1035 39d9 7; ' 1. "..... i.59.Now you can read and edit the text as you wish. Vim treats this information as plain text.3. Convert 16 binary b
Apple Mac computer Access Windows shared Files method
1, first confirm that the Windows system is open to share. And the LAN between the two computers has been through.
2, Apple Mac System, click on the desktop. Open the top menu "go".
3. In the menu, select the "Connect Server" below.
4, enter the address to share, the for
1. After upgrading Mac OS X 11, you want to copy files to the system directory.
sudo cp-f test.txt/usr/bin/
2、I found that even with permission sudo, there are also permission problems.
CP:/usr/bin/test:operation not permitted
3. The reason is that after upgrading Mac OS X 11, El Capitan has added the Rootless mechanism. It is no longer poss
In Mac systems, the simplest and most convenient way to hide files/folders is a terminal command: chflags hidden (relative or absolute path of files/folders), for example: chflags hidden/Users/Jay/Dropbox re-display the hidden Folder command: chflags nohidden (relative or absolute path of the file/folder) for example: chflags nohidden/Users/Jay/Dropbox hide the f
Command-line Operation SVN does not use the interface form of the tortoisesvn intuitive, but anyway, the command line Operation SVN still has it a bit, if you encounter a need SVN add many files what to do? The following commands can help you solve this problemAdd all new files to the SVN repository at once:awk ' {if (= = = "?") {print $}} ' xargs svn addDelete all file
Previously, under the Windows operating system, used to export new or modified files with TortoiseSVN ("quite useful" how to let TortoiseSVN export new or modified files), recently replaced with a Mac Pro laptop, did not find a similar TortoiseSVN Useful Client Tools. Well, use PHP to write an export gadget:1, tool file name: svn.php , its contents are as follows
When using SVN to manage code, if you submit the original SVN managed project to the new SVN directory, you need to delete all the contents of the. svn file in the original folder, or the direct commit will cause the failure.You will be prompted that the code has been managed by SVN and is not allowed to be uploaded to the new directory.1. Copy first. CD to the directory below, (note. svn files are hidden, how to view hidden
If you're a curious person who wants to explore the Apple system, when you want to find out where the library is, how can you not find it? When you want to hide your secret, you can only hide it in the form of a folder stack? No insurance, in the event of meeting to see the folder on the point of the people do not stop to do? Open the terminal, Lock the Secret in nothingness!
1, first of all, to ensure that you know the name of the target file or folder, you do not put this name correctly into
First step: Open the "terminal" application.Step Two: Enter the following command:Defaults write Com.apple.finder Appleshowallfiles-boolean true; Killall FinderStep three: Press the "return" key to confirm.You will now see the hidden files and folders in the Finder window.If you want to hide the original hidden files and folders again, replace the above command withDefaults write Com.apple.finder Appleshowa
How can I display hidden files in the Mac system? enter the following command in the terminal to display them. Defaults write com. apple. finder AppleShowAllFiles-bool true if you want to restore the hidden state, run the following command: www.2cto.com defaults write com. apple. finder AppleShowAllFiles-bool false note: 1. After the command is executed, restart the Finder to see the effect. 2. Do not tampe
Show all hidden files:First command: Defaults write Com.apple.finder appleshowallfiles TRUEEnter, forcing the system to change the preferences folder in the user repository com.apple.finder.plist file appleshowallfiles parameter value to TrueSecond command: Killall Finder interrupts the finder process, refreshes the view1 Write Com.apple.finder appleshowallfiles TRUE2killall FinderDo not show hidden files:1 Write Com.apple.finder appleshowallfiles F
About this problem, yesterday's time has been met, but restarted the computer results, can be normal deletion of unnecessary files, did not expect this morning when the boot up again this situation, it seems that I have to study, or the daily command line delete too troublesome.Some degree of search to get some of the solutions are basically using sudo rm-rf "filename" to delete, or did not find their own satisfactory solution, then the rest of the pr
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.