Tagged Questions

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)

2
votes
2answers
39 views

softlink to Network Location

does anyone know a trick how to generate a Softlink to a Network folder (smb or nfs) the idea is that there are some network folders i use regulary, but they usally not mounted .. the soflink i made ...
0
votes
0answers
28 views

How to automate iTunes to iOS File Sharing

Connect an iPad to a Mac via USB and iTunes allows you to copy arbitrary files to apps that support it. How can I automate that? Neither AppleScript nor Automator can do it. Is there a way on the ...
5
votes
6answers
6k views

How to fix curl: (60) SSL certificate: Invalid certificate chain when using sudo

So since the Mavericks upgrade curl has more issues with certificates. When trying to curl a file from my web server with it's self-signed certificate it was getting the error "SSL Certificate: ...
0
votes
2answers
145 views

how to configure Surfraw on OSX?

Has anyone had success configuring Surfraw on OSX? How do I get a working configuration for OSX? http://www.surfraw.org/
0
votes
0answers
14 views

How do I Install the xcode command line tools without the confirmation and license prompt? [duplicate]

I ended up answering this myself but I figured I'd throw it up here to document it. xcode-select --install asks if you are sure you want to install the script, then it prompts you to accept a license ...
1
vote
0answers
78 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
1
vote
2answers
86 views

Why do I have to install CLT when Xcode is installed?

On a fresh Mavericks, I installed Xcode via the App store (accepted license agreement and enabled developer mode). After that, Command Line Tools (CLT) are found (checked via xcode-select -p). ...
2
votes
1answer
620 views

Use find in Terminal to remove directories and files of same search parameter

If I type the following into Terminal, it will remove all files that meet the search parameter: sudo find . -type f -name "*Xilisoft*" -exec rm -rf {} \; Then if I start again and type it with d ...
0
votes
0answers
23 views

Automatically copy PDF.plugin to Chromium.app

I'm using Chromatic.app to update my Chromium.app recently. I'd like to use Chrome.app's PDF.plugin in Chromium.app. Therefore I need to copy PDF.plugin to the following directory: ...
3
votes
2answers
196 views

How to have locatedb created / updated automatically?

I ran locate blob.txt and I got: $ locate .bashrc WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command: sudo launchctl load -w ...
2
votes
0answers
60 views

Why is Terminal.app corrupting my tcsh history?

I've had an ongoing problem that appears to be specific to OS X and Terminal.app: periodically, I get garbage in my tcsh history that looks like this: ^[[1m^[[4mcomputername:~/Code/emacs-source ( ...
1
vote
1answer
29 views

How can I create 'gch.app' such that “open -a gch page.html” works like “open -a Google\ Chrome page.html”?

I type open -a all the time from the terminal, and more often than not the application I want is Google Chrome.app, so I end up entering things along the lines of: open -a Google\ Chrome ...
2
votes
1answer
70 views

How can I move fast in CLI in Mac?

In linux in CLI I can press ALT + F or ALT + B to move back and forth in terms of words and not one character at a time. Is this available in Mac? There is no ALT and I tried Control + F, Fn + F, ...
0
votes
2answers
375 views

Upgrade JRE in Mavericks [duplicate]

Am trying to run eclipse in maverick but a dialog box says that version 1.7.0 or later is needed to run Google plugin for Eclipse. My mac has version 1.6.0 when I run java -version from the command ...
9
votes
2answers
14k views

Why Mac OS X don't source ~/.bashrc [duplicate]

I found a lot of people figuring out why instruction similar to this : Put X to your ~/.bashrc and you can do Y don't work. It always turns out that Mac OS X's bash's startup files (or Mac's ...
0
votes
0answers
54 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 ...
1
vote
2answers
677 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
108 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
35 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
24 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
49 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
264 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
2k 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
146 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
63 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
131 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
42 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
224 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
290 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
69 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
61 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
141 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
1k 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
246 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
277 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
1k 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
164 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
561 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
328 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
196 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
196 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
3answers
12k 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
600 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
520 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
142 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
72 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
232 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
452 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
54 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 ...