Using programs and commands that do not have a graphical user interface (GUI) but are rather controlled by typing text commands into a terminal program, or shell.

learn more… | top users | synonyms (2)

3
votes
4answers
10k views

How to find all files that are larger than 1GB on the Mac HD?

It seems that either one of these commands can be used: sudo find / -size +1G sudo find / -type f -size +1G But when it gets to /Volumes, it actually look at all the back up files by Time Machine ...
3
votes
1answer
73 views

Why does this cause Mac OSX to print over SSH?

While screwing around and breaking things I came across these stupid commands (if executed in order it causes what I got): cd / && cat vmlinuz cd /boot/ && cat init* It causes ...
8
votes
2answers
477 views

How to download Firefox via command line FTP

I am attempting to install Firefox on my Mac, which currently does not have a browser. From a bash terminal I have ftp installed and am currently connected to the internet. However, I have been ...
2
votes
2answers
2k views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
6
votes
1answer
883 views

How to access /dev/mem in OSX?

How I can access /dev/mem (or /dev/kmem, /dev/pmap) equivalent device in OSX? As far as I know it was removed in some point. Can I create this node manually somehow or any other way of dumping the ...
0
votes
0answers
19 views

Schedule executing tasks based on bash scripts using CronniX

I'm still quite new you Mac and OS X but do have some background about other UNIX based systems, so please excuse for any misunderstandings. My goal is to implement a function that executes certain ...
0
votes
0answers
36 views

Command line developer tools missing after OSX update

I have noticed that every time I do Mac OSX update the Command line developer tools is getting lost. I had to install it again after each OSX update. Is there a way to prevent this? Or Is there a way ...
4
votes
4answers
1k views

How to find the currently connected network service from the command line?

I would like to find out which of the available network services (e.g. Ethernet or Wi-Fi) is currently active. In this screenshot from the Network Preferences, you can see that Wi-Fi is currently ...
1
vote
3answers
37 views

Create a custom terminal window

is it possible to create (and put in the dock) a custom terminal window? What I mean with "custom": it should have a different name (eg. "myTerminal"); it should automatically start running a ...
0
votes
0answers
29 views

How to set a Mac with Retina display's scaled resolution via command line?

I write a shell script I just have to launch it to completely set my Mac up. On long-term, I plan to make patched custom Mac O.S. builds that'll be first patched of security flaws, automated to set ...
5
votes
1answer
48 views

AppleScript : Set do script result as variable

I would like to get the result of this search and display the result in a notification or safari popup. " set result to do shell script "curl https://www.binlist.net/json/" & cc without altering ...
0
votes
1answer
25 views

How to get local directory names into terminal window titles?

The title of my terminal window is: Terminal -- bash -- 130x39 This is how I see them listed in Terminal->Window and it is very hard to know which one is which. When I use multiple terminals, the ...
8
votes
2answers
2k views

How to isolate processes that evoke insane mds_stores disk read activity?

I have an interesting situation where when I monitor my disk activity, I find that mds_store is continually running between 1 to 35 megabytes per second (averaging around 3-5 MB/s) on the read and ...
1
vote
1answer
251 views

dpkg.pm @INC dpkg-scanpackages / > Packages

I am running Max OS X 10.9 Installed: -Xcode 5 (latest version) -Fink -MacPorts -Xcode Command Line Tools -Theos I have a shell script running Dpkg-scanpackages debs / > Packages But i am ...
2
votes
1answer
394 views

How to change the default command to open shells in the MobileTerminal Cydia package

I am using MobileTerminal on iOS 7, and want to know how to change the default shell from sh: to bash:. I assume I would need to change the login command for this, but how would I?
2
votes
0answers
89 views

How to access GPS data from command line on jailbroken iPhone

Are there any binaries available via the command line to get information from the GPS on a jail broken iPhone? I've searched through Cydia and haven't found anything, but I wouldn't imagine this ...
0
votes
2answers
306 views

Is there a way or a tweak to make Siri execute shell commands

Indeed I have a home automation system, I would like to integrate a voice control system and for that I need to be able to call shell commands like curl. I have seen many Siri tweaks but none of ...
1
vote
1answer
18 views

Cannot install libsodium via commandline

I am trying to install libsodium using ./configure --prefix=/usr make sudo make install In the install step, I get this error: usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] ...
0
votes
0answers
33 views

Is there a command or script in mac OS X to set the creation date to match the modification date?

Somehow, the creation date of all the photos on my USB drive has been updated to a recent date, but the modification date remains untouched. So any photo app thinks the photos were just taken recently ...
1
vote
1answer
57 views

Permissions corrupted in OS X

I have run sudo chown -R Ankur / by mistake and now some apps are not opening and there icons are also not visible. How can I fix this? Here are some snapshots:
4
votes
2answers
96 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ...
1
vote
1answer
60 views

How to open path in Double Commander from Terminal

If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?
0
votes
1answer
59 views

Is $PATH just a file with a list (in order of preference) of directories?

I'm having trouble understanding exactly how $PATH works? I am on a Mac.. If I install Python with Homebrew, it will install Python into the /opt/local/bin directory. Now assuming Homebrew didn't ...
-1
votes
1answer
57 views

What is actually happens when moving a file onto/into another file?

I was trying to move some files to a directory, because of wrong destination directory path all files are moved to another file. Can I undo this action to get my files back? - Hopefully NO Is there ...
4
votes
1answer
29 views

How can I log all notifications?

Dropbox, PushBullet, Thunderbird and a dozen other apps create notifications. Is it possible to log these in a Unix-like way? I dislike the tiny messages popping up for a few seconds and then ...
1
vote
2answers
30 views

Why does my iTerm2 launch with an X in it's path?

After upgrading to El Capitan, then working on installing Rails, my iTerm2 shell now opens with x >, instead of just >. Can someone please explain why this is happening, and help me figure out ...
0
votes
1answer
63 views

OS X El Capitan: man, command not found

Today I was trying to update openssl in my MacBook Pro with El Capitan 10.11.2. I don't know where I made a mistake but it seems I have accidentally disabled man. In fact, if I launch man ...
34
votes
4answers
19k views

MacPorts vs. Fink vs. Homebrew

I always used MacPorts to install and maintain my GCC compilers and other programs. Now I've heard about Fink and Homebrew. It seems these two utilities are gaining ground in the Mac community, but I ...
0
votes
2answers
34 views

Is it possible to set the JAVA_HOME env in El Captitan?

I am unable to set the JAVA_HOME environment variable osx. I added the following line to my .bash_profile export JAVA_HOME=`/usr/libexec/java_home` and sourced it afterwards; yet when I printenv or ...
5
votes
4answers
1k views

pbpaste, pbcopy using wrong pasteboard?

I'm converting a shell script which xclip and similar tools on Linux, to use pbpaste and pbcopy on Mac. The problem is the default pasteboard ('general' according to the man-page) for these tools is ...
0
votes
1answer
35 views

OS X Terminal: 'ls' shows program but then says command not found?

I am trying to start MongoDB from the terminal. When I navigate to the folder and hit 'ls', all the applications show up but when I type in the name of the application( 'mongod'), it says it is not ...
3
votes
3answers
58 views

Display interactive notifications (with buttons) via Terminal

I'd like to let my bash shell scripts to display gui notifications with two buttons that the user can click and then execute some commands depending on the button pressed. What options exist?
148
votes
8answers
77k views

How can I trigger a Notification Center notification from an AppleScript or shell script?

I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write. Is there a built-in command or a third-party library I can use from either an ...
4
votes
1answer
384 views

How can I “Open an app from an unidentified developer” without using the GUI?

Basically, I used the native Safari.app web browser to download a third party application and I want to run / open it from the comfort of my bash shell / Terminal.app CLI; despite the following error ...
22
votes
4answers
80k views

Why does OS X Mavericks block the purge command in Terminal?

When I try the purge command on my terminal, OS X Mavericks gives me the following message: Unable to purge disk buffers: Operation not permitted This hasn't been the default behavior until now. I ...
94
votes
8answers
72k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
1
vote
1answer
163 views

Manage login items from terminal in 10.11 El Capitan

Previously, % launchctl submit -l label -- command args was the way to go. This does not work in 10.11.2, I'm fairly sure it was working in 10.10.x, but cannot be certain. The likely-looking ...
3
votes
3answers
225 views

Can Safari's download popover window be made wider?

How can the max. width (fixed width≈425) of Safari's download-popover-window be made wider? Is there a way to get at Safari's "download pop over window" in any way so its max-size is larger than 425 ...
81
votes
9answers
154k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the ...
1
vote
1answer
72 views

What does “is not recognized as an internal or external command” error mean?

I have spun up a VM of OS X since my main user is not an admin and I need to do things that require admin access. My end goal is to install the Xcode command line tools into a VirtualBox VM I created ...
3
votes
3answers
40 views

Unexpected changes to command line

When I open up a command line on my Mac the welcome message is usually Last login date Johns-MacBook-Pro$ This now reads... Last login: Fri Dec 18 23:48:34 on ttys000 Johns-MBP-2:~ johnw$ What ...
0
votes
0answers
36 views

Compiling Ghostscript in El Capitan

I'm trying to compile Ghostscript-9.18 ( i need libgs ) and I've run into the new Rootless Security stuff when I try to install the libs. How do I change the target from /use/include to ...
1
vote
1answer
3k views

Disabling the trackpad from the command line

How can I disable the trackpad (without restarting my computer) from the command-line on OS X Mavericks?
2
votes
1answer
76 views

How to evaluate the state of the OS X Server.app from a shell script?

I need to evaluate if the OS X Server.app has been installed and if it has been started or not. This I need to do from within a shell script. I could check for existing folder names, but I would ...
1
vote
0answers
11 views

Why the service does not start after logging in

The service is jenkins installed with homebrew on Yosemite. I have this: ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist and this: % launchctl list | grep jenkins - 0 ...
4
votes
1answer
38 views

OSX: how to determine USB current draw?

I connected a device to my USB port, but it's unclear how much current it is drawing. Is there a way from the command line, or otherwise, to determine how much current that device is drawing?
2
votes
1answer
4k views

How to repair and/or reinstall Homebrew safely?

I am trying to repair Homebrew. I recently tried to reinstall it but when I typed "brew doctor" My output was: shell-init: error retrieving current directory: getcwd: cannot access parent ...
5
votes
2answers
404 views

grep: command not found

This is a very weird behavior. Lately, whenever I am trying to find a process on console with ps aux | grep foo, it is returning a grep: command not found. Ok, that could be something that I changed ...
3
votes
1answer
43 views

Why is the host name in the shell prompt “MacBook-2” instead of “MacBook”?

I opened Terminal on my MacBook Pro and the prompt read MacBook-2:~ myName$. Is there something wrong? Do I need to be worried about this? Why "-2"? Thanks in advance.
1
vote
1answer
147 views

How can I create bash_profile and bashrc [duplicate]

OS X 10.11.2 El Capitan I want to create some alias, so I go to ~/ folder and there is no .bash_profile or .bashrc. I have been looking for some info and I learn that .bash_profile is only read ...