Hot answers tagged


The open utility on Mac does not read from standard input, but take its arguments from the command line. To open the current working directory, you would have to say $ open "$( pwd )" or $ open "$PWD" or simply $ open . as pointed out in the comments below. With the -f flag, open can be made to read from standard input, but only to open whatever ...


I don't have a Mac so I can't test it, but the solution should be something like: open "`pwd`" Not all programs take their input from stdin which would be necessary for the pipe to work.


The other answers are totally correct. If you want an easy shorthand, you can do as @fd0 proposed, and just use open . to open the current directory. The current directory is named . (a single dot) in Unix, the parent directory .. (two dots).


pwd | xargs open xargs shoves its standart input into the arguments of its first argument.


Normally less "clears the screen" (which probably refers to switching back to the normal screen from the alternate screen) when the terminal description has the appropriate escape sequence in the rmcup capability. You would see a difference if you are using different values of TERM in the two programs. The infocmp program can show differences for the ...


Recent versions of Mac OS X have what's known as System Integrity Protection, aka "SIP", aka "Rootless". It basically makes parts of the file system read-only to everybody, including root. You may have bumped into that. The intent is to prevent mistakes and malware from modifying your base operating ...


If you're looking for a package manager like Yum or APT, no there is not similar built-in package manager. Without using a package manager, you cannot download from the net - repositories. The only option you have is compile your code. But if you're looking for a package manager, I recommend you use either Homebrew or Mac Ports. I've worked with both, and ...


What you're seeing with ctlt is a summary of the running process information, not dd's output. dd does not output any progress information, unlike what you seem to expect. If you want to see the actual progress from another terminal window, look at the output file size changing. In this case you're writing to a raw disk, so patience is probably your ...


Here you are: ifconfig -a | grep -e "inet [0-9]" | cut -d" " -f 2 Most of the given answers won't work well on Mac OS X! The easiest thing you can do, is using cut or awk.


If you have VMware Fusion installed on your Mac one solution could be going to the selected Virtual Machine Settings and check both Accelerate 3D Graphics (Which requires VMware Tools installed on that virtual machine) and Use full resolution for Retina display (To enable Retina display support in selected virtual machine) in Display Setting. BTW, Here's ...


The BSD install found on OpenBSD systems has this piece of code in it (from src/usr.bin/xinstall/xinstall.c): if (!S_ISREG(to_sb.st_mode)) errc(1, EFTYPE, "%s", to_name); This emits the error install: /dev/fd/4: Inappropriate file type or format when it's discovered that /dev/df/4 is not a regular file. (There's a separate earlier check for /dev/...

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