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

1
vote
1answer
39 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 ...
1
vote
1answer
63 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 . ...
19
votes
2answers
629 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 ...
2
votes
1answer
78 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
2answers
383 views

X11 applications don't open after XQuartz update (OS X 10.10.4)

I updated X11 by installing the most recent XQuartz package, 2.7.9. Now, when opening an application that is supported by X11 (e.g., emacs), my terminal throws an error (while X11 starts in the ...
1
vote
1answer
36 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 ...
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
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 ...
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 ...
0
votes
2answers
44 views

Trouble adding a printer with lpadmin

I'm trying to add a printer through the Terminal using lpadmin, and it absolutely refuses to work. The printer adds just fine, everything looks perfect from what I can see, but any attempt to print ...
2
votes
2answers
43 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 ...
0
votes
0answers
33 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 ...
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 ...
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 ...
5
votes
2answers
342 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?
0
votes
3answers
61 views

Some Applications stay in Dock after closing

After i cloes the Applications the Instances still be shown and can't be force closed. Same with the Dock only if I kill my Dock in my Terminal it reduces the symbol to 1. Also the processes don't ...
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
40 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 ...
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 ...
3
votes
2answers
72 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 ...
0
votes
0answers
25 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 ...
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 --...
0
votes
0answers
22 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 ...
0
votes
0answers
14 views

Certain Icons with a Specific Size on desktop

Is there a Terminal command or setting to edit the registry of a Mac to change the size of a specific icon on the desktop (not all) smaller or larger? This feature would help me organize my mac and ...
1
vote
0answers
68 views

Terminal command to clear DNS cache doesn't seem to work

I do a lot of website work where I change nameservers for a domain, wait overnight for it to propagate on the host server, then go back to work on the site. Lately, what happens is that I can see the ...
0
votes
0answers
69 views

How to factory reset a broken mail app via terminal OSX El Capitan?

I opened my mail app this noon I wanted to send an email, as usual I clicked on the compose email button I wrote my mail and sent it. Now after that the mail app started acting strange. It switches ...
1
vote
2answers
33 views

change sudoers to stop asking for password when running a systemsetup comman

To what exactly do I need to change sudoers file to prevent asking for password when I change system time zone? This is the command I am going to run: sudo systemsetup -settimezone timezone I know ...
2
votes
1answer
27 views

How to export Moom settings (especially keyboard shortcuts) to external file?

I'm working on some shell scripts to customize OS X to my preferences just by calling one script. From a lot of native OS X options, script is going to easily import some predefined settings form 3rd ...
0
votes
1answer
45 views

Macbook Snow Leopard Unzipped file

I used Terminal command to unzip an audio file downloaded from a public library. Command used: unzip -v /<zip filename.zip>; rm -rf _MACOSX. Terminal displayed 31 files were extracted and ...
0
votes
3answers
51 views

locate isn't finding a file that exists

The file in question is: /Users/me/Library/Containers/com.dell.Toad/Data/workspace/.metadata/.plugins/com.dell.toadext.oracle.core/connections.xml What is wrong with locate?
0
votes
1answer
37 views

Help Understanding Terminal's Command

OS X 10.11.5 on a Mid 2011 iMac. I'm new to development on OS X and am trying to understand enough to figure out a Ruby path issue I'm having. I ran Inspector on Terminal and was surprised by the ...
1
vote
0answers
21 views

How to assign a different audio bell for terminal

I just dont like the system audio bell for the terminal in my mac. How can I get my mac use a different file which I have obtained from internet. Its a .wav file which I have got from the internet.
0
votes
0answers
33 views

Extract Icon of File using Terminal

I need a way to extract the icon image of a file or directory and save it as a PNG or JPG, using the CLI. For example, if the file were a PDF document, the extracted image would be of it's icon: the ...
0
votes
0answers
29 views

Why does my terminal in Macbook show this message? What should I do to preclude that message?

Last login: Mon May 23 11:29:54 on ttys000 -bash: /Users/karthy/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory
0
votes
0answers
17 views

programatically mimic events on a Mac [duplicate]

How can I listen for an event on my Mac, record the event and than execute it programatically. For example, I want to reload extension I made programatically. For that I need to go to Extension ...
0
votes
0answers
42 views

programatically reload Safari extension

How can I programatically reload extension I created in Safari? This image shows the reload button that I manually have to click every time I update my extension: Any way to this is programatically?...
1
vote
2answers
121 views

After waking-up, how do you know if your mac was hibernating (fully powered off like Windows PC) and not sleeping?

Not sure if my Macbookpro Retina 2015 is waking up from sleep, safesleep or hibernation. I have enabled hibernatemode 25 (via terminal command: sudo pmset -a hibernatemode 25). pmset -g shows ...
0
votes
0answers
25 views

How can I undo sysctl commands?

I was troubleshooting an issue connecting my PS4 to my MAC to share my VPN connection and I typed this into my terminal: sudo sysctl -w net.inet.ip.forwarding=1 sudo sysctl -w net.inet.ip.fw.enable=1 ...
0
votes
0answers
22 views

replace folder using Terminal

How can I replace a folder using Terminal? I tried this, but this code copies the folder, but it doesn't replace it when the folder is already present. Is manual deleting before copying the only way? ...
1
vote
1answer
74 views

How can I find the serial number of my Apple Keyboard USB on a mac programmatically from the terminal?

I would like to retrieve the Apple USB Keyboard's serial number from a command to use in a script. What command can I use ?
2
votes
1answer
29 views

Automator task to open screenshots in Preview automatically

I'm pretty new to Automator but it seems like it's possible - I just can't seem to get it to work. I'd like to be able to take a screenshot and then open it up in Preview for easy annotation. If it's ...
2
votes
3answers
155 views

Set the result of command to variable in Terminal post execution

How can you set the output of a command run in terminal to a variable after it has run? Background (You can skip of you don't need the background) I run VirtualBox VM and do a lot from the command ...
1
vote
2answers
42 views

Why does 'set -x' cause the terminal to dump garbage

This problem is quite annoying and I cannot search Google for 'set -x' because the minus sign has another terminology there. In my MacBookPro, when I use 'set -x' to debug bash commands, I'm getting ...
0
votes
2answers
52 views

How to get defined lines from OS X Terminal result?

How do I get the first 20 lines of a OS X Terminal result?
1
vote
0answers
37 views

Are there any advantages to using GNU over the default OSX command line utilities? [closed]

Are there any advantages to using GNU utilities (installed via homebrew) as opposed to the default, BSD based OSX utilities? They seem very similar to me, but I will not pretend to be a master of ...
0
votes
0answers
10 views

Screen Sending EOL After Each Character

I just connected my Anthem AVM20 audio/video controller to my Mac Mini via an USB to RS232 cable. I've been able to bring up a screen session. The problem is that it appears to be sending some sort of ...
-1
votes
1answer
27 views

Downloading music

if I download music from a legitimate website, like amazon or iTunes, and half through my download I receive a Facebook notification or a text message or phone call on my phone, will the notification ...
0
votes
0answers
28 views

How do I make terminal windows STAY the same size?

I have set up my terminals, so that they are the size I want them to be. However, I often have several tabs open in each window. Terminal keeps trying to make the window BIGGER when I get too many ...