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 (1)

1
vote
1answer
71 views

Terminal Command Line to find corrupted files

I do have just one corrupted photo into my Photos Library. Is there is any UNIX command line that I can use in terminal in order to scan my Photos Library Folder and find out which file is corrupted? ...
1
vote
0answers
50 views

Command Line Tools update description of changes

When Apple provides updates for OS X and other software it typically also describes the changes introduced in that version, as displayed in the App Store application's Updates tab or in a separate ...
0
votes
0answers
21 views

Terminal: “command not found” [duplicate]

I have issues with my Terminal, after every command I try to run, it returns something like "command not found" or "No such file or directory exists" I think I caused it when I tried to run MineCraft ...
1
vote
3answers
34 views

Problem: How to clear all remnants of random.py, random.pyc, and random.pyo that isn't part of Python's standard library?

I wrote an import random code, and unfortunately saved it as the module's name I was trying to call. eg. random.py I believe, but am not sure, that I created the random.py file twice and thus I ...
0
votes
1answer
24 views

Warnings when installing pip

I just installed pip and got a few warning messages. Should I be concerned? Is there a way to check that pip was installed properly? Here's what I did: [mchenja@mycomp ~]$ sudo easy_install pip ...
2
votes
1answer
14 views

Does homebrew store tar.gz after package installation is complete?

If so, where? If not, where does it downloads it for the time of installation? I interrupted a package installation (brew install) and then restarted it. Do I have two tar.gz archives now? I thought, ...
0
votes
0answers
25 views

os.Popen command is not working

I'm writing a python script that is suppose to change default display settings for all users. I run the script as sudo because it needs to change every display. This line is suppose to change the ...
5
votes
2answers
89 views

Why does preview change the ctime of a pdf, and how can I disable it?

When I open a file in Preview, preview updates the ctime of the file. This seems to only happen once however, and as far as I can tell, nothing other than the ctime is changing. This is very ...
2
votes
2answers
61 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 ...
3
votes
3answers
326 views

Downscale a iMac 5K screenshot to 50% using commandline

Open the Screenshot in Preview Select “Adjust Size…” from the Tools menu Change the Width and Height to 50 percent of the original Change the Resolution to 72 pixels/inch I wish to do this on CLI ...
0
votes
0answers
50 views

mkfs.jffs2 or equivalence on Mac Os X

I need to use mkfs.jffs2 command on Mac OS X. On Linux, the command is installed with mtd-tools package, but I can't find it from homebrew. I tried to build from the source, but I have numerous ...
0
votes
0answers
25 views

How can I programatically remove folder from Finder's Favorites?

I installed one app which adds special folder to my Favorites sidebar in Finder. I like the app, but I don't like polluting the sidebar. Unfortunately, the app doesn't allow me to turn off the ...
0
votes
0answers
30 views

Partitioning a Hard Drive using “Logical Core Volume Group”

I have a series of scripts I use for repartitioning hard drives before a DeployStudio reimage. They're really simple: #!/bin/sh diskutil partitionDisk /dev/disk0 GPT JHFS+ Mac\ OS\ 10.10 100g JHFS+ ...
1
vote
2answers
38 views

“open or reload” html doc from command line?

I have a program which generates some html documentation. At the end of the script, I use the open command to automatically view the page in the browser. generate-document > index.html open ...
1
vote
1answer
34 views

What is wrong in this command about grepping and pandocing?

I am thinking this answer which returns a broken PDF document in OSX 10.10.3. The file test_dummy.tex is here. pandoc test_dummy.tex -f markdown -t html | grep -E '(^<|^$|^ *$)' \ | grep -v ...
1
vote
1answer
26 views

cannot locate app, locate not working

I have an app (gv) where I can run it from the terminal, but when I click on it, I get errors. This makes me think there are multiple instances of it or something. I tried which and got nothing... ...
1
vote
0answers
46 views

Changing color of text in terminal for program output

This might be answered already but I could not figure out a good way to phrase it to look for an answer so I hope you'll bear with me. I want to change the color of the text output on Terminal if it ...
8
votes
1answer
840 views

How can I take selfie by running a console command on Mac? [duplicate]

I know I can take a selfie with the built-in camera via the Photo Booth app. However, is there a way capture an image via command line, in sort of lolcommits style?
5
votes
3answers
524 views

Can I use GNU ps on OS X?

We can install GNU coreutils via brew. But there's no ps in the utils. Can we use gnu ps in OS X? I'd like to use GNU ps as it has more options and features.
3
votes
0answers
72 views

Command line to disconnect or connect 802.1x authentication

I have been searching for a terminal command line to disconnect or connect 802.1x authentication, but not the network interface. I was searching some help pages and it showed command lines to export ...
0
votes
1answer
13 views

Where is GNU info files stored on Mac OSX?

For example, where could I find the info document of bash on mac OSX. I only know the man page is stored at /usr/share/man/ but doesn't know where to find the info file.
0
votes
1answer
19 views

Modifing a preference via applescript changes file group

I recently request help about modifying firewall settings via command-line (see my previous question). Everything is working, but I have noticed that whenever I use this command in an applescript, the ...
1
vote
2answers
60 views

Automated screensaver configuration in command line/shell script

So I'm configuring some Default User Template LaunchAgents to configure a default screensaver for some of my company's most popular fan art. (It's actually been really well received by the team). ...
0
votes
0answers
37 views

Yosemite command-line tool update programs

What command-line tool update programs are there in Yosemite? I've used: pip (for Python packages; seems to be built-in, unlike the following) brew (homebrew for application installation) gem (for ...
2
votes
2answers
39 views

How to renice by process name?

I am trying to Launch a process using NICE but this process is starting other process by itself and they are not affected by the priority of the main process ( main process has the correct nice but ...
0
votes
2answers
84 views

Howto run a Terminal command using shortcut or a button

I always have the problem in my dock, where the download bar just stops and stays froze. I know you can do a killall -KILL Dock and it will fix the issue. Is there a way to click a button or do a ...
2
votes
2answers
135 views

How to dump the content of keychain from the shell?

I'm testing the following command-line in the Terminal: sudo security dump-keychain -d login.keychain which I'd like to use to save all my passwords into a file. However when I run it, it keep ...
0
votes
0answers
24 views

What is CIFS mount command line?

Mavericks, 10.9.5, I need to connect to a DFS share with CIFS rather than SMB, but the following command gives me error: mount -t cifs //myserver/mydir/mylink /Volumes/SpareDisk/mnt Error is No ...
9
votes
1answer
357 views

OS X terminal “open” command and keeping focus on the command line

I appreciate the "open" terminal command to launch OS X apps. When invoking the open command for any purpose, it is overwhelmingly likely that I will have at least one other command I would like to ...
1
vote
1answer
46 views

Can I open a file in Preview from the Terminal?

I know that I can open a file with an external program from the Terminal with open, and that works for most applications. However, when I try to use a command like open -a Preview info.txt, it ...
1
vote
1answer
35 views

Lock Screen from Command Line? [duplicate]

I have activated the Keychain Menu Bar icon so I can relatively easily click Lock Screen to lock the screen of my MacBook. Is there a way to do this with a shortcut or via the command line? I know you ...
0
votes
1answer
50 views

grepping /Library and “Too many levels of symbolic links”

I'm trying to clean up remnants of an application that was removed: $ sudo grep -R "iNet Network" /Library ... grep: ...
1
vote
1answer
17 views

generic approach to finding the correct name to run an app from the command line

Whenever I am not in a browser or in my text editor, most of my time on my mac is spent on the terminal. What's a quick, generic way to figure out how to run a gui program from the bash shell? It ...
1
vote
0answers
444 views

Command line tool installed, but gcc/g++ compiler not working

Heads up, I have a similar problem such as in this question, but it wasn't resolved: how to debug configure.sh errors when compiling rsync on Yosemite So basically I am looking to compile code via ...
1
vote
2answers
263 views

Is there a command similar to Linux's command-not-found?

Most Linux operating systems have a package like command-not-found (http://packages.ubuntu.com/utopic/command-not-found), which provides suggestions when a shell command was not found, e.g. because ...
2
votes
2answers
364 views

How to find .bashrc or .zshrc?

I just got a MacBook Pro and am in the process of trying to get GNU commands installed. I'm following this guide, but I don't know how to do: Then add the following line to your .bashrc or .zshrc: ...
1
vote
1answer
30 views

How to list audio card IDs from terminal

I am developing a script which deals with sound recording. As user potentially can have multiple sound cards attached, I would like to give him/her a chance to select desired one. The software I use ...
2
votes
4answers
170 views

How to go to alias from terminal?

By alias, I mean the folder shortcut created when you right-click a folder in Finder and select "Make Alias". I can traverse symbolic links in Terminal with cd, but it doesn't work on aliases: bash: ...
-1
votes
1answer
30 views

Command to find out the version number of a .pkg file

Does anyone know how to retrieve the version number of a .pkg file which isn't installed yet? I'd like to use something like pkgutil --pkg-info, but that only works for installed packages. I've ...
0
votes
0answers
31 views

-bash: /Users/[me]/.rvm/scripts/initialize: No such file or directory

I was in a directory where I had a ~ and I went to remove it by doing rm -f ~ for which it said it was a directory. So I made the really silly move of doing rm -rf ~ and suddenly I get the error ...
0
votes
2answers
61 views

How can I create a script with multi command

I tried to create a script on OS X. I do something wrong. I want to execute 2 command: defaults write com.apple.finder CreateDesktop -bool true and killall Finder I saved and chmod the file but ...
1
vote
1answer
36 views

CLI options do not work if passed at the end of command [duplicate]

In brief: ls -a /tmp works but ls /tmp -a does not. I recently started using Macbook Pro. Coming from a Linux background, command like ls /tmp -a seems perfectly fine to me. But for some reason ...
0
votes
0answers
108 views

How to disable Bluetooth Sharing via terminal?

I want to disable the Bluetooth Sharing that is located in the sharing preference section. I want to be able to disable it via terminal, does anyone have an idea on how to do that?
0
votes
0answers
32 views

mdimport - bad packing

While forcing the index of a folder on an external drive through the command line (mdimport), I get "bad packing" pushed to stdout. Anyone have an idea what this rather cryptic error means?
1
vote
1answer
142 views

Change accessibility setting on Mac using terminal

I would like to grant accessibility permission to some apps on Mac using Terminal as per this intruction https://support.apple.com/en-au/HT202866 which is the accessibility tab in System Preferences ...
0
votes
1answer
53 views

mysql: command not found [duplicate]

How do I use MySQL from the CLI? When I use the terminal, I get: Darrens-MacBook-Pro:~ thufir$ Darrens-MacBook-Pro:~ thufir$ mysql -bash: mysql: command not found Darrens-MacBook-Pro:~ thufir$ ...
1
vote
0answers
79 views

Cannot compile anything anymore after upgrading to Yosemite

I noticed after upgrading to Yosemite that none of my upgrades in homebrew would work anymore. I noticed that it was a problem in general with compiling any kind of C code. The error I get is: In ...
1
vote
1answer
60 views

How do I get the name of the wifi network I'm connected to?

I know how to find it out in Objective C, but I need to do this in a shell script. (I could compile and install one of the example programs given in the link, but surely there is already a command ...
1
vote
0answers
15 views

Preventing less from quitting when I scroll down

I don’t know if it was a change to less itself or to the Terminal app, but when I upgraded to Yosemite I noticed that I could use the mouse scroll wheel to move around in less. Whenever I use this ...
2
votes
0answers
123 views

Finder gets confused after using the mv command in the Dropbox folders

I should mention I'm new to command lines. I want to rename files using the mv command in the Terminal. I type: mv oldFileName.pdf newFileName.pdf Afterwards, I use the ls command to check whether ...