Tagged Questions

Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

0
votes
2answers
25 views

To prevent Finder from showing .noindex files

I can restrict Finder searching files by adding .noindex -extension, this thread. However, I want hide those files in Finder search. How can you prevent Finder from showing .noindex -files?
2
votes
1answer
38 views

Change user name

I had to change the admin user name of a new Macbook because his sons name kept showing up, Home Folder etc, So I used, 'sudo mv /Users/oldusername /Users/newusername' and Advanced Options in User ...
1
vote
1answer
20 views

Concatenating date and cycle count to file on startup

I have the following code from here to find the cycle count of the battery on my computer: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' I will enclose it in a simple app ...
2
votes
0answers
31 views

SSH to device via USB

When I try to SSH over USB to my device running linux, I get "ssh: connect to host 10.90.1.2 port 22: Network is unreachable" Mind you, I can run the same command "ssh root@10.90.1.2" on my linux ...
1
vote
1answer
61 views

Recompiling bash to avoid shellshock seems to have messed up bash

I probably shouldn't have even messed with it, but I followed the instructions to recompile bash here: How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)? ...
3
votes
2answers
36 views

Merging multiple AIFF files from the command line

Is there a way to put multiple commands in different voices into the same audio file. I know you can do this: say -v "Cellos" "la di da" -o ex.aiff But I have multiple commands in different voices ...
2
votes
1answer
22 views

How to open a new tab in iTerm in the same folder as the one that is open?

I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my ...
2
votes
2answers
794 views

brew bundle reporting “Error: unknown command: bundle”

I'm completely puzzled by this one. I have refactored my install scripts to use the new brew bundle feature. However, I'm getting "Error: unknown command: bundle" $ which brew /usr/local/bin/brew $ ...
0
votes
1answer
185 views

iSSH alternative

I'm using iSSH application on my iPhone, mainly for VNC connections. I like its usage. But as I understand, this app is not in App Store now, and the development of iSSH was ended. Could you please ...
0
votes
1answer
64 views

What is the meaning of the command lsof +L1

lsof +L1 My understanding is that the command above shows files that have been deleted but are still open. These files have a “link count” of 0, meaning that there is no directory entry (no link, ...
1
vote
1answer
85 views

Terminal colors in Mavericks

I am trying to get terminal colors working in 10.9. I have tried ls -G, I have tried exporting CLICOLOR=1, I have set a bunch of different TERM settings and none of it works. Anyone know what the ...
1
vote
0answers
16 views

No access privileges after new setup via Terminal commands OSX 10.5.8

I have an old G5 Mac running OSX 10.5.8 (leopard)and I had forgotten my admin password. I used some excellent terminal commands I found at Ask Different to Reset the initial setup. I used a different ...
0
votes
1answer
54 views

Disk Utility Showing 0 Bytes on USB

I have a 32GB USB. I recently used dd to write a Linux image to the USB. Somewhere during dd my Macbook froze. When I plugged it back into the laptop after rebooting it wouldn't show. I left it 20 ...
1
vote
1answer
105 views

External Hard-disk showing Input/Output error

I have a 1TB External Hard drive which I'm currently not able to access. When I open the External drive in Finder, It shows it's empty. When I use the option to "Get Info", I get the dialog box ...
0
votes
3answers
56 views

List of all dates+times when I used my MacBook?

I need a list of the periods of times I used my MacBook throughout the last 30 days. It would be sufficient to have a list of all lid-open and lid-close datetimes (because I close the lid whenever I ...
1
vote
3answers
50 views

bash-command not found; for every command == fear i could screwed up the path

here is the output of echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin and when I gave cat /etc/paths this is the output /usr/bin /bin /usr/sbin /sbin /usr/local/bin I am ...
0
votes
1answer
20 views

difference b/w various commands for getting root access in terminal

I have used linux:Kali for a while and to get root access i just needed to type: su in terminal. But in OSX i need to type in su - what does this - mean? If i just type su in terminal than i get ...
0
votes
1answer
32 views

iTerm2 cannot be opened even after SMC and PRAM resets

I got a gray screen due to "A kext releasing a(n) AppleHDAEngineOutput has corrupted the registry." Once the computer restarted, I cannot open iTerm2 anymore. A 1-lined terminal shows up without the ...
0
votes
0answers
10 views

Is there a way to set up a public/private key login in Terminal Remote Connection?

I have to log into a few different droplets on Digital Ocean and the Terminal Remote Connection app seems like a simple way to do it but it doesn't offer (an obvious) way to save the private key with ...
3
votes
1answer
50 views

In iTerm2 Command Click on URLS does not work when inside a tmux session

When not inside a tmux session, Command-Click on URLs works flawlessly. How can I make links clickable in iTerm2 when inside a tmux session? When hitting Command the mouse pointer changes to the ...
1
vote
1answer
148 views

How can I fix this CODESIGNING error?

After having successfully compiled bash and sh for OS X Mavericks our OS X Server's System Log is flooded every 2 or 3 seconds with: ... kernel[0]: CODESIGNING: rejected new signature for ...
1
vote
2answers
314 views

Accidentally removed all commands in terminal

I was following a tutorial and put in the following line: export PATH="~/.composer/vendor/bin/" Now no commands work at all, not even things like ls. What does the command do that I copy and ...
2
votes
0answers
58 views

New users can't see Apple applications from Utilities folder in Launchpad

I felt like giving my mess of Launchpad icons a fresh start. So I did defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock On checking Launchpad, it had appeared to have ...
1
vote
2answers
55 views

Remove full name from login window

In Mountain Lion, my full name is displayed at the bottom of the log in menu. As I want to sell my computer, I was wondering if there is a way to hide this? (it's the only place that you can see it as ...
2
votes
0answers
35 views

MacVim: difference in syntax highlighting in terminal and GUI

I installed MacVim with homebrew, and specified the option to override system vim. It can be confirmed by looking at the version of vim in terminal. However, I don't understand why the terminal ...
0
votes
1answer
47 views

Launching Terminal Freezes the System for 5 Minutes in Mavericks

Only recently, when I launch Terminal in Mavericks, the system becomes unresponsive temporarily: the spinning wheel appears; I can still move the mouse pointer but nothing responds; if Activity ...
3
votes
2answers
29 views

See live report of process's status

Under Linux, I can use top to see a live report of what processes are running. An important field I use is the Process Status field, which shows whether a process is running, a zombie, sleeping, etc. ...
0
votes
1answer
21 views

Option+. prints ≥ instead of being recognized as a shortcut

Within the terminal, I used to be able to press Option+. in order to insert the last argument of the last command into the current prompt. On my new setup, pressing this combination simply prints "≥" ...
0
votes
1answer
71 views

How to uninstall Git?

Anyone know how to uninstall Git? I would like to uninstall Git using the Uninstall.sh file that came in the git-2.0.1 install bundle. I am unable to find the Uninstall.sh file using Terminal. When ...
0
votes
0answers
32 views

Getting volume information from command line

How do you get the information available by right-click "Get info" via the command line using Terminal. In particular I want the "Created" and "Used" value for DVD volumes. Bonus question: Is there ...
1
vote
0answers
43 views

Terminal window is now blank

A Terminal newbie here. I had downloaded and installed Git, but when I typed "Git --version" I would get illegal instruction. I tried to uninstall Git and now my Terminal window in blank. How do I ...
0
votes
3answers
39 views

In Terminal, how to erase typed command quickly?

In Terminal, let's say I type a long command, but before I press Enter, I decide that actually I don't want to run this command, and want to run another new command instead. In such case, how to ...
1
vote
0answers
25 views

Click in finder vs “open -a” on command line

I have a file type (.mxl -- compressed MusicXML) which if I double click in Finder opens properly in my .mxl reader (Finale 2014.app) but which if I call "open file.mxl" or "open -a ...
1
vote
1answer
48 views

Switching between proxy and no-proxy config in .bash_profile

I have configured proxy settings (on mavericks) within $HOME/.bash_profile (purpose: to make npm, rvm, git use the corporate proxy) and the configs are as follows: git config --global http.proxy ...
0
votes
2answers
33 views

How to access a folder which name is composed of more than 1 word via shell?

I have tried with a simple command: cd Name of the Folder but it's not working, of course. I have also been searching on the web, but the methods I found are not actually working. How can I ...
0
votes
1answer
28 views

Confusion with sudo and multiple local accounts

I am having difficulties figuring out why certain things are much more complicated on a mac terminal than a standard linux shell.. Say I have two local accounts, one administrator called "adm" and a ...
0
votes
0answers
15 views

Run kinit as AppleScript promting for network username and password

I need to develop a small app (currently using AppleScript to do it) that I can send to users to run a "kinit" shell script command. This is on machines that are not bound to the domain, but needs to ...
0
votes
0answers
4 views

Unable to Erase USB / Trying to salvage

I am trying to salvage my USB but I keep running in to errors in Terminal. I attemped: diskutil verifyVolume /dev/disk2 Started file system verification on disk2 Checking file system ** /dev/disk2 ...
0
votes
0answers
23 views

Mac Terminal can't handle utf-8 characters

I've been having some trouble getting UTF-8 characters to display properly in Terminal, so I wrote the following program to run through and print out characters from Code Page 437 (which is the page ...
0
votes
1answer
17 views

How to run a script on login whilst being hidden

I have an applescript (scpt) script that I would like to run on login of a user. I would like the script not be visible in the dock, menu bar, etc. (This would probably mean running it in the ...
0
votes
1answer
129 views

How to trigger Notification Centre notification from JavaScript? [closed]

The other question asks the same but using AppleScript. Apple introduced JavaScript as a new language for Automation in OS X 10.10.
0
votes
1answer
80 views

Terminal command `screen` will not split windows vertically

Macs come with screen natively installed, but I seem to have a problem with mine. After running screen and creating another window (ctrl+a, c), the split command (ctrl+a, |) won't do anything. ...
0
votes
2answers
37 views

How to change terminal $HOME variable? My terminal can't even be opened now

I mean change $HOME not by defining in ~/.bash_profile, but loading the variable when shell opens. By the way, after some misoperation I cannot even get into the Terminal now... It now says [Process ...
2
votes
1answer
40 views

dd ruined my USB stick, how do I recover?

I tried to copy a Linux distro over to my USB using DD. But half way through it failed because the computer went to sleep or something. I plugged the USB in and I get a message saying it's unreadable ...
2
votes
1answer
32 views

How do I forcibly shut down a specific application at a pre-determined time?

I don't know if there's an available app or perhaps a terminal command, but I'd like to forcibly shut down a specific application at a specific time, without the option to cancel. I'd like it so I ...
7
votes
1answer
78 views

How to “chroot” a terminal inside a DMG?

I'm doing security research and for that purpose I use an SHA-2 encrypted DMG to store the tools and files I work with (containing confidential client info), to protect them from forensic examination ...
0
votes
2answers
52 views

Open new Terminal tab in current working directory doesn't work

In the Terminal preferences you can find an option to open new windows and tabs in the current working directory. Yet there's a message that says that programs notify Terminal about the current ...
2
votes
1answer
88 views

Updating and running Git through Homebrew instead of XCode

On my new 2014 Mac (OS X 10.9 Mavericks), I have just installed Git using Homebrew. In order to install Homebrew, I had to download and install XCode 5. So now, when I enter the command which git, I ...
1
vote
1answer
62 views

Why can't I install Python-Markdown?

I've had some weird issues with my python install recently but I've usually been able to get it working. However I'm running into a really bizarre issue right now where pip is installing things that ...
1
vote
1answer
74 views

Cannot SSH from OS X Mavericks to Solaris server

Well, this is embarrassing. It was a case sensitive issue. Prior to posting the -v output on this site, and probably due to looking at this problem for too long, I forgot the fundamental rule of case ...