0
votes
0answers
4 views

linux net command for osx terminal? [duplicate]

i am trying to establish a way to use the same samba net commant found on a linux distro using samba 3.x but i am unable to identify the mac version of it reference to the net command: ...
1
vote
0answers
42 views

tail a file without wrapping the lines on a mac

I want to tail -f a file that may contain very long lines. I would also like to see one line per screen line and scroll to the side if necessary, much like Vim's zL and zH, so no line wrapping, Is ...
0
votes
0answers
49 views

Why the second time creating a ramdisk make /dev/rdisk2 instead of /dev/rdisk1?

I run the first time ever: diskutil erasevolume HFS+ ramdisk `hdiutil attach -nomount ram://8475854` It create the ramddisk at /dev/rdisk1. The computer power off, power on then I repeat the same ...
0
votes
3answers
113 views

What causes commands to print on first line in Terminal.app on Mac OS X 10.8?

Every time I execute a command in Terminal.app, the command prints in the beginning of the first output line like this: > ls lsfile1 file2 file3 This only happens in Terminal.app, iTerm.app for ...
0
votes
1answer
417 views

Easiest way to run a command with admin privileges as a standard user in OS X

Situation: I'm running OS X 10.8.3 and i have 2 users, an Admin user and a Standard user. When i'm logged in as the standard user and i need to run a command with admin privileges in the terminal i ...
0
votes
1answer
740 views

How to enable “allow Guest Account to log in to this computer” option on Mac OS X Mountain Lion via command line?

How to enable "Allow Guests to log in to this computer" option on Mac OS X Mountain Lion via command line ?
0
votes
1answer
400 views

dseditgroup not returning error but not removing user from group

I am following instructions written by someone else to harden an OS X box. One requirement is to made sure certain system-defined groups have no users in them. For this example I will use _ard, but ...
2
votes
0answers
178 views

Terminal Command to Check if Mac Book Pro Lids Closed

I'm running OS X 10.8 (Mountain Lion). I was wondering if there was a terminal command to check if the macbook pro's lid is currently closed. The reason I ask is because I have cron jobs scheduled ...
0
votes
1answer
65 views

All the command line command become “Not found” after installing Mountain lion

I just found after installing new Mountain lion, I can no longer use the command line because all the command seems to be " NOT Found", even for basic "sudo" command sudo: command not found How can ...
6
votes
3answers
33k views

Command Line SSH restart Mac OSX Mountain Lion

How can I restart the SSH service via the command line on Mac OSX Mountain Lion please? Using ps aux | grep 'ssh', I was able to deduce that the process is most likely /usr/sbin/sshd. From here I ...
3
votes
2answers
4k views

How can I enable Mountain Lion Airplay mirroring through command line?

I want to enable/disable airplay mirroring with an script and I don't know how to find what commands are executed when Airplay is activated. Any idea about how to do it or where to search? Thank ...