Tagged Questions
1
vote
2answers
10 views
Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?
I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
0
votes
1answer
42 views
Cleaning up my .bash_profile: Can I delete some of this?
I'm not a Unix guru.
I'm running OS X 10.8.3 Mountain Lion. Today I removed Macports from my machine. I believe macports left some cruft in my `~/.bash_profile which I would like to remove (the ...
0
votes
1answer
55 views
How can i reset my Terminal?
just some time ago i installed the OS X Server app on my mac and since this day it always appears server as the chosen directory in my terminal.
But because i dont really like the Server application ...
0
votes
0answers
20 views
Making checks before rsyncing external drive on OSX
I have the following issue on OSX though I guess this could equally be filed under bash. I have several encrypted portable drives that I use to sync an offsite data store or as an on-the-go data store ...
0
votes
1answer
29 views
How do I make a bash script so that I can drag its input on top of the icon?
I need to make a bash script to that I can drag a .rar file on top of it and then the script will receive the pathname of that file as argument 1 ($1). I have made the bash script, but how do I make ...
1
vote
0answers
25 views
Terminal configuration lost after booting up
On OS X 10.8.3, my Terminal.app is configured with my .bashrc file. In my .bash_profile I have:
source .bashrc
It works great, except when I let some Terminal windows opened and shut down the Mac. ...
2
votes
2answers
63 views
Is it possible to get the full suite of unix options for the command line tools on OS X?
I follow Unix Tool Tip on Twitter and it is interesting that many of the tips that are posted are not available on OS X.
For example:
cp - u will only copy files that don't exist, or are newer ...
4
votes
1answer
59 views
Disable line wrapping for output in the Terminal
I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling.
Is ...
0
votes
1answer
51 views
Force relaunch of Finder from terminal into background
For some reason, Finder is no longer running and will not relaunch using conventional methods.
I can, however, get it running with the following command in the Terminal:
prompt$ open -g ...
0
votes
1answer
45 views
Dim screen beyond lowest brightness from terminal [duplicate]
Anyone know of a way to dim a mac's screen beyond the lowest brightness setting through the terminal?
0
votes
2answers
45 views
How to Reset Full-Screen Terminal.app Preferences to Factory Defaults
On an iMac running Mac OS X version 10.7.5 I have accidentally resized Terminal.app to full-screen (272 x 76) and am unable to resize Terminal.app to a smaller size. How do I resize Terminal.app to ...
2
votes
1answer
49 views
How to change fonts picked by Terminal.app to display languages other than English?
This is definitely and advanced topic and possibly needs a hack that I am willing to do.
I edit Arabic files quite a lot. Arabic characters displayed by Terminal.app are not playing nice at all. To ...
0
votes
1answer
29 views
how do I reset or clear the list of Volumes?
I am running into this problem when I accidentally remove a USB drive without properly ejecting it or similar and then plug it back in.
When my drive is plugged back in it will apear normally, for ...
0
votes
0answers
59 views
Read /dev/null on mac os x
I'm trying to read what is sent to /dev/null on mac os x.
There are instructions published here: http://unix.stackexchange.com/questions/31958/monitor-what-is-being-sent-to-dev-null - but these ...
0
votes
0answers
30 views
Recreate unknown users on crashed mac
About a month back one of our Macs crashed and we had to restore it. The computer had an external drive connected to it and all the data is still there. Though some of the users are "missing". If we ...
2
votes
0answers
39 views
OS X breaks if I apply HFS compression to the whole volume. What do I need to exclude?
OS X breaks if I apply HFS compression to the whole volume. (It won't boot.)
What do I need to exclude?
I've been able to compress large parts of it, but then I had to restore after I compressed ...
1
vote
2answers
39 views
Check if Network Accounts are avalible
We have a domain running Microsoft Active Directory and in that domain there is a number of Mac computers running Leopard and later. Sometimes the users are met by a red dot at the login screen, ...
0
votes
1answer
50 views
what are the split terminal commands
I stumbled across the command-d hot key which splits the terminal into 2 panes. But I cant find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. ...
0
votes
1answer
74 views
autossh not behaving as expected
I am trying to use autossh, like so:
autossh -f -i id_rsa -D 8080 user@myserver.com
However, on both an PPC Tiger eMac and a Mountain Lion MacBook Pro, I just get presented with the argument and ...
0
votes
1answer
62 views
SSH request timeout every time
I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 - Terminal).
I checked firewalls, settings, even turned off Little Snitch, and port ...
0
votes
1answer
40 views
Removing current Python version and use other python version
First of all i installed python 2.7 with manual.After i installed python2.6 with macport with referenced this.
And after i deleted my Python 2.7 files.
The main point is when i write python at ...
0
votes
1answer
34 views
uptime: /dev/ttys003: No such file or directory
When I use the uptime command on OS X, this error is printed:
$ uptime
uptime: /dev/ttys003: No such file or directory
20:57 up 36 days, 22:10, 3 users, load averages: 1.77 1.37 1.75
By running ...
2
votes
1answer
87 views
moving the downloads folder inside another folder (10.8.2)
i was hoping to utilize this trick
How to move the Downloads folder (in Mountain Lion) to another disc
to move my Downloads folder inside a directory called "disktop zi5" which is inside the directory ...
0
votes
1answer
160 views
Python IDLE can't be opened by double-clicking .py files in Finder
I can't open .py files in IDLE by double-clicking them in Finder (IDLE is currently set as the default program for opening such files). Nor can I open those files by right-clicking and selecting ...
0
votes
1answer
113 views
Terminal Tab Title after SSH Session
In Mac OS X (I'm on 10.6.8, though I believe other versions are the same) ssh'ing into a remote machine changes the title of the current tab in Terminal. Annoyingly, when I disconnect from the remote ...
1
vote
2answers
136 views
Terminal returns not found for most commands Mac OSX
I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts.
Having done so, I typed in sudo port install wine and ...
1
vote
1answer
177 views
The Command to enter login items is not working in 10.8
I am entering the login item from the terminal but, this command is not working for me:
defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add ...
0
votes
0answers
19 views
Exporting a Windows Group in terminal makes redundantly named Windows Groups
OK, so I've made several Windows Groups and experimented making some open with an automatically executing command (and some that don't). My problem is that once I store such a 'group' as a clickable ...
1
vote
2answers
85 views
Change ownership of all files, from one owner to another
I changed the shortname of my user account, but it seems to have caused an issue with some files (especially homebrew stuff), which are still owned by the old username. My old short name was cannyboy, ...
1
vote
0answers
143 views
Is it possible to download Apple's Command Line Tools for Xcode from the command line?
Background
My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...
2
votes
1answer
1k views
What steps are needed to create a new user from the command line on Mountain Lion?
What commands (or script) can create a fully functional user account on Mountain Lion, running only from the command line via terminal or ssh.
It looks like an existing pair of answers might work, ...
1
vote
3answers
35 views
how to tab text blocks in terminal input line
$ I want to be able to tab from the start of one word to the next in this line, but how?
usually if I paste something in the input line then want to change something in the start or middle, I have ...
3
votes
5answers
188 views
Are there any global key combinations suitable or specifically reserved on OS X for user assignment?
I'm trying to identify an appropriate global hotkey to set in iTerm2's preferences for showing/hiding it:
I'd like to avoid any conflicts with other applications' hotkeys or other future use. Are ...
3
votes
3answers
76 views
After typing sudo I can no longer autocomplete commands by pressing Tab
In a Terminal, if I type beginning of any command by pressing tab I can see the rest of that command.
However this feature does not work with any words I type after sudo.
How can I complete command ...
0
votes
1answer
50 views
OSX ML Terminal - Switching tabs
I am a terminal junkie and use it all the time...literally. Is there any way to be able to switch between tabs with Command+Number (eg. Command+1 for tab 1).
Yes, I know about iTerm, I'm just ...
0
votes
1answer
31 views
Terminal not logged in properly
I'm having a bit of an odd issue with my terminal.
I'm used to the prompt being Joosts-Macbook:~ Joost$ or something of that nature, but all of a sudden it displays a number I don't recognise: ...
2
votes
6answers
388 views
Improved Terminal autocomplete funcionality (similar to Matlab's)
If any of you ever used Matlab, you might have noticed the command window functionality in that program. I wonder if it is possible to enable the same functionality in Mac Terminal.
It works like ...
1
vote
1answer
32 views
Make meta + arrows count underscore as words?
I find myself using the meta + arrow keys constantly.
When I am editing code, it would be nice if I could count underscores as words so that when I decide to rename a variable it goes to the ...
2
votes
1answer
92 views
Downside of manual shutdown
I've been using shutdown -h now in the terminal to turn off my iMac (sooo much faster than waiting for every program I use to close out), and I wondered if there were any downsides to shutting down ...
0
votes
1answer
52 views
Access applications and their folders from terminal
I have a folder that I want to init with git, but to do that I have to 'navigate' to that folder using cd. The problem is when I write cd Applications, that folder is empty and I cannot go into ...
0
votes
0answers
105 views
Execute command on launch of custom Terminal Window in OSX10.5+
I'm trying to find a way to automatically launch a command when Terminal is run, but:
Have the Terminal window close after command has returned control to it / after (using &) after command has ...
4
votes
1answer
144 views
How to reset $PATH?
I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer and used the following lines:
...
1
vote
1answer
208 views
Editing war file with Midnight Commander
I'm trying to edit the contents of a war file on midnight commander (Mac OSX). With a normal zip file, this works fine. However, when I try to open a war file, I get an error message:
gzip: stdin ...
1
vote
1answer
37 views
creating a new user in Mac will it reset everything?
I want to reset all my configurations trying to install MySQL & other development stuff through the terminal on my Macbook and start fresh. Cause it was my first time do this & I think I made ...
2
votes
1answer
107 views
Create a default folder structure & insert current Date in Terminal by single command?
I often find myself creating the same structure by hand in finder for new projects, how can I quicken this process with a single Terminal Command?
Example of structure & command:
Terminal
$ cf ...
1
vote
4answers
80 views
How can I extend the time when system.log gets turned over?
Right now my system.log gets recreated every 24 hours or so with a message like:
Jan 4 00:30:01 Mac newsyslog[63416]: logfile turned over
Can I change a setting such that it will get rotated every ...
0
votes
0answers
30 views
pbpaste and aira2
I'm creating alias to do few things and run into a problem:
Alias executes couple commands and on success starts download of resulting url, which is being copied into clipboard. Everything works fine, ...
3
votes
1answer
177 views
whoami is not who I am!
I login into my own computer as username geoff. When I open a terminal I have as prompt:
Geoffs-MacBook-Air:~ org1$
The org1 is my work username! I have no login of that username for this computer ...
3
votes
1answer
205 views
Why does the folder icon in my Terminal have a question mark overlaid?
From time to time, I spot that the folder icon in the titlebar of one of my Terminal windows has a question mark overlaid on it, e.g. this one:
What does this mean? It doesn't seem to have any ...
2
votes
1answer
276 views
how do I get Terminal's Search with Google to open in the default browser?
Scenario: working away in Terminal, get an error message. Want to google it so I select text and use right-click and "Search with Google". Opens Safari every time. Google Chrome is my default browser. ...

