Tag Info

Hot answers tagged

2

The command you posted has two parts find /Volumes/Documents/ -exec stat -f "%N %Sm" {} + >~/Desktop/test.txt The second part is easier to explain, it just writes all the output of the first one into a file called test.txt which is stored on your desktop. If you leave that part out, the result of find will be directly written into your Terminal ...


2

The exit command will continue the startup process where it left off, leaving you in the normal graphical environment. But note that you will not be logged in as root, it'll take you to the normal login screen. If you want to log in as root in GUI mode, you'll need to set a root password (which you can do in single-user mode with the command passwd root).


2

If you use the Ruby that comes with 10.9, gems are installed in /Library/Ruby/Gems/2.0.0/: open /Library/Ruby/Gems/2.0.0/gems/plist-3.1.0/lib/plist/parser.rb If you use a Ruby installed with Homebrew, gems are installed in /usr/local/lib/ruby/gems/*/gems/.


1

You can use the open command: open test.xlsx or, to specify the application explicitly: open test.xlsx -a /Applications/Microsoft\ Office\ 2011/Microsoft\ Excel.app/ or even, open test.xlsx -a "Microsoft Excel"


1

You do use %20 if you need the space between two words. I had had made a mistake in the spelling which caused me to think it didn't work. Also, in case anyone needs it in the future, if you access the CUPS webinterface and select Manage Printers it will give you the correct lpd address syntax.


1

Permissions may be the culprit as locate apparently cannot read files that are not world readable. See this answer by Plundra for more explanation. The findutils package from homebrew does enable gupdatedb and glocate commands that seem to overcome some of the limitations of the builtin utilities.


1

Try: sudo /usr/libexec/locate.updatedb And look config: /etc/locate.rc the configuration file Edited: Post here output: echo $LOCATE_CONFIG And: cat /etc/locate.rc And: echo $0 Update: https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/locate.1.html#//apple_ref/doc/man/1/locate The locate program ...


1

From the man page of skill These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead. so you could use pkill -KILL -u uid. But why kill every process with the KILL signal? You can just call exit after your script: script.sh ; exit


1

From the source code of newgrp if (ngrps == NGROUPS_MAX) warnx("too many groups"); and I think NGROUPS_MAX is defined as 16. That is given in syslimits.h


1

The groups command is not showing the correct ordering of groups in your user context. It is sorting group ids by gid. Use "id" the show your group set actually used by NFS. See "man groups" for details. Use the command "newgrp group" to change a group into the first place of the gid list.



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