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
votes
0answers
17 views

Ensuring network connections are 'synched' with Yosemite [on hold]

I am looking for commands relating to networking, maybe for Terminal. With windows there are commands to close ports, flush DNS and other important things. What are good Terminal commands for a ...
2
votes
1answer
41 views

Shell Script Commands Work Fine in Terminal But Not Via AppleScript

I have two commands that I need to run through the Terminal. They are cd /Users/[my name]/Desktop and curl 'www.google.com'>google.txt. When running these directly in Terminal they work just fine. ...
0
votes
1answer
27 views

How do I 'pause' in a .command-script?

I want to create a .command-script on Mac, to execute a series of commands on a remote server using SSH. My script looks something like this: ssh user@domain.com cd /var/www/website/ git pull ...
0
votes
1answer
6 views

How to restore manually Saved State files of Terminal?

My MBR crashes quite often. Normally I've multiple terminal windows and usually they're restored after crash. However from some to time they're not restored, so for that reason I was doing the backup ...
0
votes
1answer
11 views

How do I use llvm-profdata in Mac OS X Yosimite?

I have a simple question: how do I use the llvm-profdata binary provided by XCode's Command Line Tools in the terminal? I have installed the Command Line Tools and could see the binary in ...
25
votes
5answers
4k views

Did `man ls > temp.txt`. Output textfile is corrupted

When I execute man ls > temp.txt the output text file is corrupted. By corrupted I mean that first and last letters in some words are overly repeated. Several first lines in temp.txt: LS(1) ...
1
vote
1answer
22 views

Launching Character Viewer (aka CharacterPalette) from command line

So, recently I have being using the Character and Keyboard Viewer a fair bit and set up simple Alfred keywords that toggle the launch/quitting of these apps so as not to have to leave the keyboard. ...
0
votes
1answer
42 views

how to run open -n applicaton name from command line?

I got these two lines that I want to run from a script file (on Yosemite 10.10.3). It works when running from terminal CX_LICENSE=LS open -n /Applications/Inspire\ Designer\ 10.0\ GA/Inspire\ ...
0
votes
2answers
44 views

Command Line Tools Difference?

Is there a difference between the command line tools that come with xcode and the ones installed with xcode-select? If I install xcode and then run xcode-select --install will the ones installed with ...
1
vote
2answers
29 views

Command line app location? (OSX)

I wrote a small tool as a cmd tool. Where should it be placed? Which paths are automatically scanned for searching an app? I want to avoid absolute path, because I have to track it on every system.
-1
votes
0answers
14 views

Moved Ruby files to new folder in Users directory

And they've since disappeared; I'm unable to open them in Sublime Text Editor or edit them in the command line. They're not listed anywhere, even though the initial move was noted successfully. I've ...
1
vote
1answer
35 views

How can I change 'history' command output?

So by default .bash_history stores 500 last used commands. I changed that to 5000 by setting HISTFILESIZE=5000 in .bash_profile It seems to work. Now when I do history it still prints 500 commands, ...
1
vote
1answer
40 views

Where should a command line tool store cache files in OS X?

/var/cache is missing, ~/Library/Caches seems to be for full-fledged applications rather than command line tools, tools I've seen in the wild do horrible things (like use the user's home directory). ...
0
votes
0answers
7 views

How do you change the default route to a VPN?

I'm connected to the internet via a public unsecured WiFi router with address 192.168.1.1. I have an OpenVPN connection to a remote router who's LAN address is 192.168.2.1. After I connect, I get ...
0
votes
0answers
80 views

Does OSX 10.10.4 support LZMA compression at the individual file level (not tar files)?

From the command line, I would like to compress some database dumps using the LZMA algorithm. And, OSX adds XZ support (written in October of last year), claims " It turns out the XZ support in OS X ...
1
vote
0answers
52 views

Get rid of the “Instruments wants permission to analyze” prompt, from command line, in Yosemite

In our jenkins build automation environment we have several OSX nodes, now all updated to Yosemite, where we run ios simulator tests. The problem is that on any newly introduced node simulator tests ...
2
votes
1answer
47 views

MacBook Pro HDD corrupted files and bad blocks? Find command running for 4 days; Disk Utility reports no errors

Computer: Late 2011 MacBook Pro 13" Factory 500 GB serial ATA (5400 RPM) HDD Problem: A few days ago my computer started running extremely slow — could barely perform the most basic functions ...
0
votes
1answer
31 views

Why BSD eval cannot run gtime?

I am considering this answer with GNU time which I installed by brew. data.txt hello amigo this line 3 and here we go 4 and 5 is here Code in BSD time time eval $(echo sed $(for i in 1 2 3 5; do ...
1
vote
2answers
95 views

How to use the flag -p of BSD split?

Manual -p pattern The file is split whenever an input line matches pattern, which is interpreted as an extended regular expression. The matching line will be the first ...
1
vote
1answer
103 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
60 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
42 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
53 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
31 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
28 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
92 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 ...
3
votes
2answers
82 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
345 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
82 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
28 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
41 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
41 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
27 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
70 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
851 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?
6
votes
3answers
555 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
89 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
78 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
63 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
44 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
101 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
179 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
29 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
400 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 ...
2
votes
1answer
71 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
59 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 ...