questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

61
votes
8answers
194k views

Is there an OS X terminal program that can access serial ports?

What programs can act as a terminal and access serial ports? This is not for terminal access on an IP connection, this is so I can access a hardware device plugged into a USB/serial converter running ...
0
votes
1answer
38 views

Does the `mdls` terminal command access metadata in resource forks?

I always knew that Mac operating systems had a concept of "resource forks" but have just learned that this feature has in fact been deprecated since the arrival of OS X. I also just discovered the ...
5
votes
3answers
11k views

How do I get Wi-Fi info from within Terminal?

Is there a way to get BSSID and the list of available Wi-Fi networks from within Terminal? I.e. I'm looking for something similar to ifconfig run0 scan on OpenBSD, which lists all access points, ...
3
votes
1answer
42 views

what is the style of command line editing used by the terminal emulator?

in bash in gnome terminal in Ubuntu, the command line editing commands are by default emacs-style, and can be changed to vim-style. In bash in the terminal emulator of Mac, the emacs-style commands ...
2
votes
3answers
2k 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
4answers
3k views

Applescript - Unable to find resource when inside application

I have a regular Applescript application bundle that executes an applescript file when it's run. I'm trying to run a shell file that is located at "/Contents/Resources/Data/df.sh", however with the ...
2
votes
1answer
29 views

How to debug .app that only successfully launches from Terminal?

Recently, my Dropbox.app stopped launching correctly. If I double-click on the app or try to launch via spotlight, the app just silently dies within a second. I see it show up in Activity Monitor, but ...
0
votes
1answer
39 views

How can I change the apperance of terminal to make it indentical to Ubuntu's terminal

I like using the default terminal application, but as I use both Ubuntu and OS X a lot I want to make them behave and look the same. How can I change the Mac terminal to make as identical as possible ...
1
vote
1answer
64 views

Why can't I create a directory on a mounted USB drive after mkdir, but finder new directory works?

I'm trying to create a directory on a USB3 mounted hard disk drive and it is failing even though the permissions are open: bash-3.2$ ls -al total 0 drwxrwxrwx+ 2 user user 68 Jun 3 18:24 . ...
2
votes
0answers
30 views

Bash Ctrl-A Returns to Start of Line but Doesn't Display Properly

When I ssh into a Linux server from bash Terminal, I can use CTRL+A to return to the start of line properly, and CTRL+E to go to end of line and everything works fine. When I use bash locally on my ...
1
vote
1answer
61 views

Mac freezes when logging in as >console [logging in to terminal directly without launching the GUI]

When I try console login, my Mac freezes. Nothing happens visually: no switch to a black window, no spinning loading indicator in the ‘Password’ field; nothing. The only thing I can still do is press ...
1
vote
1answer
165 views

Homebrew putty installation does not make the putty command recognisable

I would like to instal putty with use of Homebrew. I'm performing the following command: brew install putty which gives the seemingly correct output: ==> Downloading https://homebrew.bintray....
2
votes
2answers
82 views

Log file that `sudo last` accesses?

The bash command last (needs sudo) prints out logs, which contain information on when different users log in/out of the shell. I have been looking for the file that stores this information, that last ...
1
vote
1answer
40 views

Recover deleted partition space

I am having the exact same issue when it comes to not being able to reclaim space as in the answered question below... Reclaim hard drive space from deleted partition and reclaim Apple bootloader I ...
-3
votes
1answer
70 views

X11/Xlib.h file not found

I am trying to install Savi-program for monitoring satellites found here via Terminal. I am developer so I have XCode installed. which gcc returns /usr/bin/gcc. Command make ARCH=macosx once in the ...
2
votes
0answers
31 views

What are the different OS X clipboards

Everybody uses the general OS X clipboard, which can programmatically accessed with pbcopy -general and pbpaste -general. However I noticed that the manpage of pbcopy and pbpaste also mention: -find ...
1
vote
2answers
368 views

Folder/File Name “Truncation” or “Wrapping”

I have been trying to find a solution for a very very long time on how to have the longer names of my folders and files to drop down to a 2nd line when viewing in the "Grid" Icon view in the My Finder ...
1
vote
1answer
37 views

loookup server IPs the website runs on with nslookup error - Got recursion not available from 192.168.1.1, trying next server

I would like to lookup servers cnn runs on for educational purposes. I issued nslookup www.cnn.com command in terminal and got an error: ;; Got recursion not available from 192.168.1.1, trying next ...
2
votes
1answer
80 views

Can't cd into alias

I have two aliases in my home directory: devbootcamp and bookshelf. I can cd into devbootcamp but not bookshelf but I'm not sure why. I don't remember how I made the alias to devbootcamp but I ...
1
vote
0answers
22 views

Ctrl+D toggles the OSX dock but I want it to be passed to the terminal

I'm new to Linux and have been playing around with manipulating files with cat ie. cat > randomNames Albert Einstein Marie Curie Isaac Newton now when I want to quit cat with control + D on my ...
19
votes
2answers
630 views

Forcing `open` command to open unsigned app?

I've got my Security preferences set to allow apps downloaded from "Mac App Store and identified developers." When I try to open an unsigned app: open xyz.app I see the following: Usually, I ...
0
votes
0answers
19 views

Merge system and terminal clipboards

I experienced an issue starting from few days ago. I cannot copy/paste (cmd+c cmd+v) from the terminal to other programs anymore, the opposite holding true. For instance, let's say I open my terminal,...
1
vote
0answers
21 views

Can't delete file with strange characters in name [duplicate]

I have an old file named ˇ¡␀␀ˇ¡␀␀␀"9 ␀"9 which is not deleted when I empty the trash. I have tried renaming it but it does not accept any changes. Using the Terminal didn't work either so far: Mac-...
0
votes
1answer
20 views

Ignore global shortcuts when using iTerm

I'm using tmux in iTerm2. To resize the tmux panels, I think I'm supposed to press Ctrl+b+Arrows. For example, if I press Ctrl+b+Down, it shows all the windows in the current app, probably because it ...
20
votes
2answers
9k views

How to I go from .flac to .mp3 using LAME & FLAC using the Terminal alone?

This is my first question, so please go easy on me. 'Tis a pleasure to be here. Hopefully somebody can help me out. For a long time I've been using a relative clunky technique which involves Audacity ...
0
votes
0answers
5 views

Stop per directory zsh_history zsh 5.2

I must've goofed and changed an ENV. Any directory I'm in a zsh_history is created of any commands done in that directory. config: zsh 5.2 oh-my-zsh No plugin to cause this. I tried reverse ...
2
votes
2answers
44 views

How to enable/disable grayscale mode in Accessibility via Terminal/App?

I'm wondering what would be the process of enabling/disabling the grayscale mode in the Accessibility panel in System Preferences? I would like to run a simple script, either by clicking on an app in ...
5
votes
2answers
343 views

Installing fonts from terminal instead of Font Book?

I know how do install new fonts using Font Book. Is there also a way to install fonts from the terminal, using some smart shell command?
1
vote
1answer
50 views

How do I configure a global hotkey for iTerm 2?

I'm a new OSX user, and I've used Linux for the past 1.5 years, and I really can't live without dropdown terminal. So I googled, and came across this question: iTerm as a slide-out terminal from the ...
0
votes
0answers
34 views

Air Apps for Mac OSX: Code object is not signed at all

I have already developed and published several Air Apps for Mac OSX before. The last one was published on the Mac App Store in July 2015 - everything worked fine back then. This week I've finished ...
5
votes
2answers
8k views

How do I re-enable the Press and Hold character picker on OS X Lion?

I disabled the character picker by reading this other question, but I want to remove that change and restore the picker. When I type -g ApplePressAndHoldEnabled -bool true into Terminal, it does not ...
16
votes
4answers
2k views

Opening tab in Terminal resizes window

I like to adjust my terminal window size to fit whatever I'm working on at the moment—sometimes a tiny screen just to tail a log file, and sometimes I stretch it all the way across the screen to read ...
1
vote
0answers
19 views

Terminal tab name after exiting midnight commander

Is there a way to reset terminal tab name (iTerm on osx or gnome-terminal on ubuntu) after exiting mc? It remains with mc title. Same thing after exiting ssh session - tab title shows remote hostname.
1
vote
1answer
87 views

Use script without root

I write a maintenance script with different commands. the script has sudo commands inside. Now I want to use crontab, but my first problem is: How can I use the script on user level without root ...
9
votes
1answer
18k views

How to remove an environment variable on OSX using bash

I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess). What I did is add the variable DYLD_LIBRARY_PATH=/Library/...
7
votes
2answers
5k views

What is the “guest” password?

I tried looking for the "guest" password by doing the command dscacheutil -q user and found the guest account. I saw that there was a "password" (I know that the usual guest account does not have a ...
6
votes
5answers
9k views

How to make bash (Terminal.app) remember history of previous sessions?

In my computer at work, my bash shell remembers history from previous sessions, even if I just opened a new terminal. In my computer at home, this doesn't happen. I have the same OS 10.6.8 in both ...
1
vote
1answer
41 views

date command gives no output

I made an alias earlier today that I saved in my .bash_profile. The alias was called date. I had momentarily forgotten that date is already a native command on OS X (and Linux) in /bin. I removed the ...
27
votes
5answers
8k 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 ...
3
votes
2answers
73 views

How can I get the dev name associated to a Volume name?

I am creating a bash script to unmount my usb drive after the backup is done. To unmount the drive I use the command: diskutil unmount disk4s1 But sometimes when I plug my usb drive it gets a ...
2
votes
2answers
25k views

MySQL not working on mountain lion

I'm using mountain lion, I have installed MySQL. GUI It shows MySQL is running, but when I type mysql --version It gives error "mysql: command not found"
11
votes
2answers
4k views

Shell Script for Yesterday's Date

I'm trying to execute the following shellscript with hazel app on any file in the folder. It works, but the only thing thats causing a problem is the date for yesterday. #! /bin/bash saveDir="TJ" ...
105
votes
5answers
192k views

Can I open files in TextEdit from the Terminal in Mac OS X?

I frequently find that a terminal command to open a file in TextEdit would be very handy. Does such a command exist on Mac OS X?
0
votes
0answers
28 views

alternative to Dterm for quick terminal

I love Dterm but it is no longer maintained. Is there an alternative? I also use Alfred's term launcher and iTerm but those are not as efficient for context sensitive one liners.
1
vote
1answer
40 views

OSX Unmount usb disk drive from Automator bash script

I have a task in automator to make my backup, it runs shell script code, lot of code is working well but the unmount command doesn't works, I don't get unmount the unit after backup. I checked to run ...
3
votes
4answers
4k views

How to remove or hide Apple applications from my app folder?

I've got a lot of Apple applications on my Macbook which I never use (Photos Facetime, iBooks, iMovie, iTunes, etc.). They just clutter up my application folder and I want to get rid of them. This ...
1
vote
1answer
34 views

Change libtool used in command line

I followed this post to install automake, autoconf and libtool. When I check automake and autoconf versions they look fine. However, when I check libtool's version I get the following $ libtool --...
2
votes
1answer
112 views

Changing iterm2 Terminal Color

Is there a way to bold the color of the current active terminal tab in iterm2? I do not see an option to do that on the appearance tab of preferences. I know I can change the tab style, but I still ...
0
votes
0answers
23 views

Help fix my xampp/mamp/mysql installation

I've installed xampp,mamp on my iMacbook air running OSx 10. At first they seem both running well, but several months later, there are a lot of problems going on and they seem interwined. I can't ...
25
votes
4answers
32k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...