Tag Info

Hot answers tagged

7

The GNU version of split is different to the OS X version of split. OS X is based on BSD Unix, and Linux (often referred to as GNU/Linux) uses the GNU toolset. The GNU version of split is part of the coreutils, and the good news is that these are available in MacPorts. If you have MacPorts installed, you can install the coreutils port using the command: ...


3

You can achieve it with dd command. Here's an example: $ hexdump StringComparison | head -1 0000000 cf fa ed fe 07 00 00 01 03 00 00 80 02 00 00 00 $ printf '\x11\x11\x11' | dd of=StringComparison bs=1 seek=4 count=3 conv=notrunc 3+0 records in 3+0 records out 3 bytes transferred in 0.000293 secs (10238 bytes/sec) $ hexdump StringComparison | head -1 ...


3

You can use the following shell function. This uses open information window which is much better than GUI scripting or keyboard shortcut scripting which relies on the file shown in Finder. si() { osascript - "$@" <<-END > /dev/null 2>&1 on run args tell app "Finder" activate repeat with f in args open information ...


1

The below small perl script I've called 'treeps' that should do exactly that; works on linux (Sci Linux 6) + OSX (10.6, 10.9) Example output: $ ./treeps |_ 1 /sbin/launchd |_ 10 /usr/libexec/kextd |_ 11 /usr/sbin/DirectoryService |_ 12 /usr/sbin/notifyd |_ 118 /usr/sbin/coreaudiod |_ ...


1

Unhide hidden files The OP does not want to make hidden files visible, I'll keep my answer for the people who do Use this oneliner to 'un-hide' all hidden files: defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder Now you can do a GetFileInfo the way you are used to. Commandi, or File -> Get Info Hide the hidden files like this: ...


1

"GetFileInfo" is not a separate app, but a process inside the Finder, therefore you cannot use open on it. But you could use the following Applescript: tell application "Finder" to activate set thePath to POSIX file "/path/to/file" tell application "Finder" to reveal thePath delay 1 tell application "System Events" to keystroke "i" using command down Now ...


1

Emoji are simply unicode characters that are rendered as such by the operating system. In the following screenshot, you can see that unicode is "allowed" in filenames: In fact, these are even rendered by Finder: To fix this, simply rename the file through Finder or Terminal. This happens because whatever glyph substitution algorithm that they use is ...


1

Something that finally worked for me was this : Removed the rsa_id.pub file and regenerated a new one (must be in ~/.ssh/): ssh-keygen -y -f id_rsa > id_rsa.pub Ensured permissions were set to 0644 for both id_rsa and id_rsa.pub (must be in ~/.ssh/): chmod 644 id_rsa* Ran the following command: ssh-add -K After doing this, I was no longer ...



Only top voted, non community-wiki answers of a minimum length are eligible