0
votes
0answers
2 views

OSX - How can I copy a local users settings/preferences to a new mobile user

We are working on migrating all our local users to mobile accounts that are bound to LDAP. I am working on a script that prompts a user to enter their email and it creates a new mobile user and then ...
-2
votes
0answers
14 views

Commandline arguments in Mac OSX [migrated]

In linux I can do something like this: rm test.txt -f On Mac however, I get the following error: rm test -f rm: -f: No such file or directory Is there a way to fix this?
0
votes
0answers
26 views

ssh from osx to windows server: how to increase buffer size?

I need to allow mac users to connect to a Windows Server 2008 machine via ssh. I am using freesshd as my ssh server, and have set powershell.exe as my command shell in freesshd (so that they can use ...
1
vote
2answers
101 views

How to add user to a group from terminal on Mountain Lion?

When I run sudo dscl . -append /Groups/com.apple.access_ssh GroupMembership $USERNAME I get append: Invalid Path <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
-1
votes
2answers
41 views

Unable to SSH into Host [closed]

I am attempting to SSH into my host. I'm using Mac OSX. When in terminal I type: ssh user@hostname I get an immediate error message stating: connect to host xx.xx.xxx.xx port 22: connection ...
2
votes
1answer
38 views

How to Add color support to watch command

as the title says, I want to see colors in my watch command. ex: # enable colors when running javascript unittests with watch watch mocha # enable colors when doing `ls` watch ls -aG
2
votes
0answers
108 views

How to get “tail -f” working on a file located on a Windows share

I'm using a Mac and I have mounted a Windows network disk in my file system using "Connect to Server" in the Finder. In the terminal when i do tail -f on a log file located on said network disk, tail ...
2
votes
2answers
1k views

How to make the 'less' command handle UTF-8?

On my Mac terminal, printing UTF-8 works in general, but the less doesn't work correctly. So this works correctly: $ echo -e '\xe2\x82\xac' € but piping it into less gives something like this: ...
0
votes
1answer
805 views

How to get Network Data Received and Data Sent Information on Mac OS X?

I want to store the network data received and data sent information on a variable or in a file. Using the below command I can grep it and print the line on screen. But I'm not able to store the info ...
3
votes
1answer
596 views

Is it possible to determine WiFi type with a Linux / Mac command?

At the co-working space that I am in, there are a number of wireless access points around. However, there is one that only some of us are able to connect to. We suspect it is because the access point ...
0
votes
1answer
1k views

Can't Install npm, Can't Remove npm, Can't Access Any Commands, Can't Install Coffeescript

I am on Mac OS X Lion, I just used the package installer from nodejs.org to install node.js. Node.js is working fine, and Node.js comes with npm. I have homebrew installed as well. I am just trying to ...
8
votes
1answer
6k views

OS X WiFi settings via terminal?

I manage a large group of macs and they are all connected via ethernet. I would like to disable wifi on them and then require and administrator to change any wifi settings (pretty much what is shown ...
1
vote
1answer
138 views

Convert back slash file names into directories

To move some data from a program on Windows to the same program on Mac, the program has a built in backup tool. Unfortunately it seems they never tested cross platform compatibility as the ZIP file ...
1
vote
1answer
104 views

Do Mac OS X servers have a security mechanism that blocks a user if they log in from two different IPs?

A trusted friend and I had ssh'ed into a Mac OS X Web Server (either snow leopard or lion) from two different locations. Then my password stopped working when trying to log in. I can safely rule out ...
1
vote
3answers
453 views

Server Bash Line Wrapping Over Text & In Wrong Place

This is quite a hard problem to explain, when connecting to one of my servers using the bash shell, under any user the line wrapping is broken and has all sorts of problems. Once of which I detail in ...
0
votes
2answers
374 views

Terminal script for Apple Remote Desktop to find disk space

I've ran into a small dilemma. I'm am attempting to get out developers all using the same features and functions, and to pretty much manage our networks in specific ways. I had NewGuy ask me if I ...
1
vote
3answers
6k views

-bash: apt-get: command not found

Over the course of uninstalling the HP/palm enyo SDK and installing node JS I somehow goofed up something (I think my path). Now when I try use apt-get I get the following: -bash: apt-get: command ...
4
votes
2answers
4k views

Can I create a hidden admin account via the terminal on OSX?

I have around 300 baby macs to look after, and they have lots of different admin accounts, which is a nightmare to work with. ARD has slowly been configured with the accounts of the machine owners, ...
0
votes
2answers
262 views

Days since a specific date

How to print in linux/unix bash the number of days since a specific date till now? (for example days since 23rd of June 2009 till today)!
2
votes
1answer
568 views

Catch-all ACL attributes via CLI for Mac OS X?

It's nice and all that one can "go crazy" adding and subtracting ACL's from files/folders till the cows come home... but when doing it from the command line, say for example.. $ chmod +a# 1 "admin ...
1
vote
2answers
278 views

Enabling alt-shortcuts in bash on EC2

I have no idea why, but on my EC2 instances which are running Ubuntu 10.04 the ALT key shortcuts are not working and instead question marks are showing instead. E.g. ALT+f for moving forward a word ...
0
votes
1answer
156 views

Creating users on OSX 10.5 and up from the command line

Is this even possible anymore? I've seen tutorials which use niutil (not available on my Mac) and dscl. My output from dscl is the following though, kind of odd: neutron:~ username$ sudo dscl / ...
5
votes
2answers
541 views

Why does CTRL-r act weirdly (showing only part of a command) on OS X

Ctrl-r is a great little tool for searching your .bash_history for previously run commands. However, when I use it in my OS X Terminal.app I see weird behavior, and I was wondering if anyone else ...
3
votes
5answers
4k views

How to scroll back in screen within a ssh session from osx?

Ok, i do the following: Open Terminal.app Open a ssh session to a remote linux server Open a screen session on the server Start a program who breaks with many lines of error reporting... How can i ...
1
vote
1answer
96 views

how do i get terminal in osx to use the python version installed in /opt/local/bin rather than the one in /usr/bin

at the moment my $PATH looks like... /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin but then whereis python2.6 returns /usr/bin/python i need to use ...
0
votes
1answer
365 views

How do I get git init to work in my app's directory?

I'm brand new to RoR and am following along a tutorial and am at this step http://railstutorial.org/chapters/beginning#sec:git_setup but I can't get git init to work. I thought I had Git installed ...
0
votes
1answer
338 views

ScreenShare: command line and observe only

I have a wide TV screen that is attached to a Mac Mini. I am able to use this screen as a second screen using an application like ScreenRecycler. However, Sometimes I want to demonstrate what I am ...
2
votes
4answers
2k views

crontab - how to create in Terminal?

I'm trying to run a scheduled task on my shared Linux server using the crontab via Terminal on my Mac. I can login to my ssh OK, and can view directories etc with ease. I try and create/edit my ...
2
votes
1answer
1k views

Start a VPN session using a Terminal script

I use an OSX Terminal session to start a VPN connection. The command that I execute at the prompt is: /etc/netlock/cvc -c :: This works as expected. I would like to save this to a script file that ...
1
vote
1answer
182 views

Is there a plugin of the OS X Terminal to display info about the current SSH session?

I would like my Terminal windows in OS X to display the security settings of any ssh tabs I have open, i.e. RSA/DSA, etc.
1
vote
2answers
236 views

Is there a program that uses OSX's Terminal to help manage SSH connection parameters?

My difficulty: I connect to a variety of servers through SSH, sometimes more than 7. Currently I have doing this through OSX's Terminal with shell commands, which works pretty good, except for the ...
2
votes
1answer
366 views

versioning from the GUI : hook to trigger script on file or folder on replace? Unix(mac)/Linux OS

Is there a way to automatically backup of files and folders triggered by a file or folder replace action. I'm looking for somthing like git-hooks or a listener of some sort that can run a ...
5
votes
3answers
3k views

How can I find the path to an executable in OSX

Is there a command I can use to easily find the path to an executable? I'm looking for identify on my local machine - something like pwd? pwd identify => /usr/local/bin/identify
4
votes
2answers
2k views

Terminal.app does not support alt/meta/command-key modifiers such as meta-backspace

This was observed on Mac OS X 10.5, running Terminal.app. On a native Linux machine, from a bash command prompt, typing meta-backspace deletes up until the most recent whitespace. On a Mac, it ...
3
votes
6answers
14k views

How to setup the Mac OS X Terminal so it's *just peachy*?

My Terminal is awesome, has every detail just right (for me anyway), and now I'm setting up a few new macs around here and I have no idea whatsoever how to get their terminals to a pretty state. My ...
4
votes
10answers
2k views

Suggestions for Terminal Emulators on Linux, Windows and Mac [closed]

I've recently found the Terminator terminal emulator for Gnome. I really like this There is a Terminator written in Java. For windows it is lightyears ahead of the installed rxvt. However, I have ...
26
votes
6answers
15k views

A better “top” command for Mac OS X? [closed]

The top command on OS X is pretty crappy.. The one included with most Linux distros allows you to change the sort-by column using < and >, there is a coloured mode (by pressing the z key), and a ...
3
votes
6answers
2k views

How do I launch terminal commands into multiple tabs?

Is there a way with Applescript to launch multiple tabs in Terminal and execute commands against them? I have a project that requires me to launch several services in Terminal to run and monitor ...