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

0
votes
1answer
44 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
40 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
16 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
26 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
16 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
10 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
43 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
31 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
25 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 ...
0
votes
1answer
62 views

I lost my bash commands (error command not found) [closed]

I was trying to set up Python environment (virtualenv and virtualenvwrapper, following this tutorial - Install OpenCV 3.0 and Python 3.4+ on OSX) and that's where my problems started. The wrapper was ...
2
votes
1answer
17 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
43 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
46 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
28 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
20 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
30 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
28 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
16 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
23 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 ...
1
vote
2answers
74 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
24 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
41 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
22 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
134 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
37 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
50 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
32 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
9 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
24 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
27 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 ...
0
votes
0answers
35 views

-p: command not found - Automator help needed

I'm using Automator to run a shell script for taking an interactive screencapture and opening it in Preview for easy annotation. When running the script it fails and states -: -p: command not found. ...
0
votes
2answers
53 views

How to get file sizes of large files in OS X Terminal?

I'm trying to get the file size of a big file (1GB +) using the OS X Terminal. I'm using du -sh. But also after 30 seconds I don't have any result, is there any faster command? Thanks.
0
votes
2answers
19 views

How to see progress of download started in the terminal

When downloading software via the terminal is there a way to see the download progress? I kicked off a download via the terminal and I can't tell if it's progressing or stuck.
1
vote
1answer
35 views

Is there a terminal command to open applications in a specific Desktop?

For example when I run open -a Kodi I'd like to be able to specify which Desktop I'd want the application to launch in. Trying to avoid dragging/dropping to the desired workspace.
1
vote
1answer
41 views

Make Cmd+C do both Copy and Stop in the terminal

Left control Key located in a very unpleasant place on my Mac keyboard. It's hard to reach in the terminal. Luckily, I don't need it very often: I have Cmd for most of the things. There are few cases, ...
0
votes
1answer
37 views

Can't empty trash on Mac

Recently every time I try to delete files, my OS asks me to type in a password. After I type in password, the files are deleted from the folder, but it doesn't free up space and the files don't show ...
0
votes
1answer
25 views

I get a bash syntax error message every time I open Terminal on macbook

-bash: /Users/admin/.bash_sessions/720116FC-4C25-4FFA-AC15-00D5C843C15F.session: line 1: syntax error near unexpected token (' -bash: ...
0
votes
1answer
22 views

How to change the GNU Make's (default) default location of gcc

I run Mac OS X El Capitan 10.4. I have used brew to install Compilation Tools (https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/). Now when I run make, it ...
1
vote
0answers
17 views

Dump iCloud keychain in Terminal

I failed to find the path to iCloud keychain to do just security dump-keychain - the iCloud keychain isn't shown when I try security list-keychains. What is the path to that keychain (or, if it cannot ...
0
votes
1answer
15 views

How do I get 'New Terminal at Folder' functionality when dragging a folder to the terminal dock icon?

Sometimes I like to open folders in Terminal by dragging the folder to the Terminal dock icon. However this creates a new Terminal window instead of creating a new tab in my current Terminal window. ...
-1
votes
0answers
24 views

System Integrity Protection removes (DY)LD_* environment variables: How do I get around this?

System Integrity Protection strips some environment variables, such as LD_LIBRARY_PATH when calling protected binaries. If you use a (ba)sh script or the env binary to pass a script on to some ...
0
votes
1answer
63 views

Extract text between two unicode symbols using AppleScript or bash?

My goal is to take text from a standard .txt document, and use (preferably) Terminal or Applescript to extract text between the symbols ▶ and •. While there is only one ▶ symbol there are multiple ...
1
vote
2answers
46 views

How to inspect TCP/IP packets

How can I inspect IP packets send through currently open TCP connections? I opened a nettop utility in Terminal, which I think lists IP packet, but doesn't tell anything about their content, namely ...
1
vote
1answer
24 views

Change iTerm2 profile depending on current directory

Using my .bash_profile, I used to change my iTerm2 profile per machine with the following command: echo -e "\033]50;SetProfile=ssh\a" Now, I want to change it depending on my current working ...
0
votes
0answers
10 views

Is there something like Alt-SysRq-k in Terminal?

What I mean is whether there is something that kills all processes in the current tty
12
votes
4answers
202 views

in terminal, I cannot type lower case e

2015 MBP, fully up to date OSX I open a terminal window and if I type the letter "e" (without quotes of course) it beeps and will not type the letter. Every other letter works just fine in terminal. ...
0
votes
0answers
8 views

How to Replace TextMate's Search by Custom Function?

TextMate uses currently mdfind as its search (CMD-F) which is bad/unstable/useless/... with .tex files. I would like to replace it by my own search function. How can you replace TextMate's default ...
0
votes
1answer
31 views

Is it possible to create a service using only the shell and bypassing automator altogether?

Using automator is somewhat of a tedious task. Using the shell in the Terminal is much easier all around. Even using the "Run Shell Script" action inside automator is not the same as using the actual ...