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)

0
votes
0answers
44 views

Change all birthday events to occur yearly in iCal?

I want to make all birthday events in my iCal repeat yearly(some of them were not added with "repeat yearly" set). I am doing them on a event by event basis but that is too painful. Is there a way to ...
0
votes
2answers
455 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 ...
0
votes
1answer
93 views

What is the proper way to use the cut command on ps command output

This question is related to a question I posted on rogue firefox procesess. It relates to firefox processes following image uploads that I have been having for a while. I am trying to get to the ...
1
vote
0answers
31 views

How to manually start a service without having a controlling terminal?

I maintain an application that runs as a background service, started either on boot as a StartupItem or manually from the command line. I want to know how to launch it manually without having a ...
0
votes
1answer
22 views

how to command to get vlc latest version?

I want to get vls latest version safely. I have brew.How could I type to terminal ? I dont wanna download it from a website since it may not be safe
1
vote
0answers
46 views

RMBP 2013 and forcing windowed games in Low Resolution Mode

Is it possible to launch a program without an associated .app bundle with the Open in Low Resolution mode activated? I am talking about ~/Library/Application\ Support/Steam/SteamApps/common/dota\ 2\ ...
3
votes
3answers
191 views

Command line tools available by default

In a unix based system a number of commands are available by default (either in /bin or /usr/bin). Suppose in some time I installed more tools like git, svn … In OS X if I install XCode and then the ...
1
vote
1answer
999 views

how to remove ffmpeg ? and install again

I want to remove ffmpeg. Typed to terminal ..........$ rm ffmpeg rm: ffmpeg: is a directory ..........$ ffmpeg ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers ...
6
votes
1answer
135 views

Software recommendation: Command line network analyser that shows owning process

I'm looking for something that is a mix of tcpdump, lsof, and netstat. I want to be able to filter like tcpdump, but have an additional column showing the process ID. At the end I'd like to be able ...
0
votes
1answer
49 views

How to use iostat with AppleRAID volume?

When I try iostat disk5, I get the error: iostat: could not record 'disk5' for monitoring Iostat works with my other drives, and with the individual disks which make up the RAID volume. How can ...
0
votes
0answers
104 views

Display w3m images in iTerm2

I am currently using iTerm2, tmux, and w3m. I would like w3m to display images, as I know it is possible in xterm. Is this possible in OS X using iTerm?
0
votes
1answer
41 views

opening file from text wrangler to terminal

I'm sure this is a very basic question, but I'm just beginning to learn programming and I've gotten to a lesson where I have to create a file in text wrangler, save it to the desktop (called test.txt) ...
8
votes
2answers
195 views

Piping multiple commands

I would like to run the following command and pipe stout of both to TextEdit: pmset -g; echo; pmset -g assertions | open -f -a TextEdit This doesn't work, it only executes the latter: How?
1
vote
3answers
206 views

Edit contents of file from Finder with text editor

As a developer I need to constantly be examining/editing the contents of text files, and opening them from Finder and the command line. I would like to right click the file in finder, and have the ...
0
votes
1answer
63 views

ImageMagick convert command produces a slight error

This happens when I convert a GIF into a series of PNG files. I convert a .gif animation to a series of .png using convert ex.gif my_png_files_%d.png I get a series of .png-figures but some of ...
0
votes
2answers
59 views

Run .command with input at runtime

I need to run a .command file with input at runtime, but I want to run via double click, not from terminal. I have a file adbInstall.command file with this code adb install /Directory/$1.apk From ...
3
votes
2answers
133 views

Is the power button on my iPhone being turned off programmatically?

I would like to know if there is a code / glitch to make the sleep/wake button on the iPhone 5/5S to stop working. i am almost 100% certain it exists due to some programmers making the code but i want ...
4
votes
1answer
852 views

Enable/Disable power nap from within Terminal

How can I enable and/or disable OS X's power nap feature from within Terminal? I guess I can deal with it using some command-line programs such as defaults write ... etc, but don't know what the exact ...
5
votes
1answer
167 views

How to launch TextMate (and probably other software) from the command line?

I am very new to Mac, coming from Linux. I am using TextMate, and I suddenly discovered I do not know how to launch TextMate from command line. Using completion, nothing looks like TextMate. Where ...
1
vote
1answer
169 views

Locating an app by its bundle identifier from the command line

I am looking for a way to find an app's location on the system from the command line using its bundle identifier. I can open it like this: open -b 'com.zerotier.ZeroTierOne' ... where ...
1
vote
1answer
771 views

Can I run an SQLite operation from Terminal?

When I download transactions in Quicken Essentials for Mac, my bank adds "DEBIT PURCHASE" and other junk to the Payee info. Quicken has no ability to find and replace globally. But I dug into the ...
3
votes
1answer
123 views

pbcopy exits code 1, no error message

I'm trying to use pbcopy and pbpaste to copy and paste to the clipboard from a shell. I read the man page to learn the syntax for these programs. However, no matter how I try to invoke pbcopy or ...
3
votes
1answer
362 views

Command Line: create a link to folder and access files in this folder

I want to do this thing: Create a link to a folder. Put this link in home (~) directory Access files in linked folder from home directory (~/LinkToFolder/file) What is the best way to it? Main ...
5
votes
1answer
269 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 ...
1
vote
2answers
147 views

How to make a message appear on the screen?

I'm trying to set up a kind of intercom system between Mac, Windows, and Linux boxes at home. Question: How can I make an arbitrary message appear on the graphical screen of Mac OS X? For instance, ...
3
votes
1answer
175 views

How to kill the popup in OS X when a disk can't be ejected

With ZFS-OSX, sometimes when I try to force eject my HDD and it's failing, the following popup appears on my screen – floating on the top with all the buttons grayed out – and no possibility to close ...
1
vote
2answers
8k views

How Do I Use 'cp' to Overwrite Files?

Using a shell script or Terminal, how do I overwrite files that may or may not be present. I looked at man page for cp, it said use the -f argument to force overwrite. But, it does nothing. $ cp -f ...
2
votes
2answers
535 views

Unix command to recursively copy JPG files in a complex directory tree

I have a large directory tree structure that contains multiple JPG files in each directory root and their subsequent subdirectories. I need to recursively extract a single JPG file from each directory ...
1
vote
1answer
2k views

How to install command line tools without error that is not currently available on Software Update server?

I am using maverick, and have Xcode 5.0.2. I am trying to install command line tools using xcode-select --install, but I get message that is not currently available on Software Update server. What ...
2
votes
1answer
402 views

Fixing two user groups with the same ID

Suddenly, my home directory is in the group messagebus instead of the usual staff.(I blame texlive for this, but have no evidence.) The problem is that both groups have the same ID: $ dscl . -read ...
4
votes
2answers
139 views

I added this to my .bash_profile but I neglected to label it and forgot what it means exactly

I remember broadly what it does, but not specifically: if [ -f ~/.bashrc ]; then source ~/.bashrc fi What is the exact purpose for it again?
1
vote
1answer
67 views

emulate Linux's `last -x` on Mac OS X

I'm currently trying to get a missing cronjob runner script thing to work, but it was written for Arch Linux, which is pretty different from Mac OS X, and one of the things that it tries to do is run ...
0
votes
1answer
209 views

In Mavericks, is it possible to use Enhanced Dictation from the command line?

A use case is: I have a recording in AIFF or MP3 format, and I'd like a text version of it as Enhanced Dictation would have recognized it if I had spoken it myself.
1
vote
1answer
327 views

How to force OS X to give a different IP lease with DHCP?

Is there a command line solution to get a different IP from a DHCP server? There are some solutions, like switching to BOOTP and back to DHCP, that will sometimes yield a new IP, but often the DHCP ...
2
votes
1answer
51 views

Size in bytes is significantly less ( half the size) then size in MB in get info window

In the get info window it says 387,037,139 bytes which is 387 MB whereas the size on disk is 716.9MB which is 716,900,000 bytes. du -sh paramgen result (in MiB) 684M paramgen Why is there such ...
0
votes
0answers
166 views

I want to mount a virtual CD-RW drive

I want to export (burn to CD) some media I own and have in iTunes. However, I do not want to burn it to a physical CD. I want to instead burn it to a virtual CD. A virtual CD is something that appears ...
0
votes
2answers
227 views

Defaults utility: how to get xcode project info

I have found that utility defaults can get info from .plist file. But how can I canonically pass as parameter to it path to .plist file ? I read about <domain> parameter but still don't have ...
1
vote
1answer
731 views

How to patch a file that resides in /Applications (patch can't find file to patch at input line)?

I am trying to patch 5 files within an Mac application bundle using the Terminal patch command. The files to be patch are specified using an absolute file path (the file name and path start with a ...
0
votes
1answer
187 views

Cannot create a file with sudo in Apache web directory

Suddenly the following problem has happened: I have an Apache web directory at /www. Everything was ok with the permissions, but at some point (I can't realize what caused it), I become unable to ...
1
vote
1answer
62 views

Splitting LexisNexis text file

For my research I have a number of text (txt or doc) files. These have a large quantity of newspaper clippings in them. I'd like to split these text files. Each clipping starts with document X ...
1
vote
1answer
72 views

Linking manuals from Homebrew

Whenever I install a software with Homebrew and I try to view the manual I get an error stating: No manual entry for <name of program>. As an example, wget: when I type $ man wget No ...
2
votes
2answers
246 views

place text over image without imagemagick

I have a png image file which I would like to overlay text onto, via the command line (for use in a Makefile). The text to be overlaid is dynamic, decided at the time the image is modified. I am ...
0
votes
0answers
12 views

Command Line Tips and Tricks [duplicate]

==>> What are the most useful Unix shell "one-liners" that you use? <<== Here are a couple of mine to get the conversation started: 1. Repeat the previous command with a substring replacement: ...
1
vote
1answer
1k views

How to copy and paste lines in Nano on OSX

I would like to copy and paste multiple lines in the command line text editor nano on OSX Mountain Lion 10.8.5 Alt-6 and Ctrl-U do not work as on other platforms.
2
votes
2answers
1k views

Getting launchd to read program arguments correctly

I have a launchd script where the command I'm trying to run is erroring (apparently that's not a word, it is now), complaining of improper usage. The specific error I'm getting is the command's usage ...
2
votes
0answers
63 views

How can I revoke an applications access to keychain passwords from the command-line?

Applications can be granted permanent unprompted access to passwords. You can add and revoke these privileges using the Keychain Access utility. (See this answer) I'd like to be able to revoke from ...
0
votes
1answer
365 views

In iTerm, why is a command shell's command not picking up things on my $PATH?

I've got a script in my ~/.bin directory that changes iTerm's background before starting an SSH session (as detailed here, script slightly modified from this version). If I start a regular login ...
0
votes
1answer
94 views

Command line open pkg [duplicate]

I am trying to write an app that will trigger an pkg to open so the user can install this. I have the code and it is working well except for the following. When I try to open the pkg file using open ...
7
votes
3answers
491 views

copy last command in terminal

I can see last command in terminal by pressing up arrow as in following example: I typed cd /: Makss-Mac:~ maks$ cd / ... pressed enter, command cd / executed and now I can press up arrow and see ...
3
votes
1answer
87 views

CLI softwareupdate does not find updates

I can see in the App Store that I have one application (Xcode 5.0.2) that needs to be updated. But if I run the sudo softwareupdate --list in terminal I get the message that there is "No new software ...