0
votes
1answer
27 views

OSX Operation Not Permitted on Immutable flag

Anyone know super command for replacing locked .plist? I have locked desktop.plist (immutable flags) needs to replace with a new desktop.plist. Problem is unable to replace the existing .plist. I get ...
1
vote
1answer
63 views

Line-wrapping `less` in OS X (specifically for use with 'git diff')

Using less +-S does not work (although it does ask Chop long lines (press RETURN)), and entering -S once inside less also does not work. Is there a solution? I am usig OS X Mavericks (10.9.3). ...
0
votes
1answer
23 views

Is there a way to eliminate the owner and group from `ls -l`?

I never need to see the owner and group for the files listed with ls -l (actually, ls -laF) and am wondering if there's a way to remove them from the output. So I want to change this: lrwxr-xr-x 1 ...
0
votes
0answers
33 views

OSX terminal command not found

I'm following a guide to setup airport in monitoring mode to do my networking exercise. I've made a shortcut to airport using this command: sudo ln -s ...
0
votes
0answers
20 views

Delete folders in directory, but keep certain amount of latest directories on OSX

The following situation: Folder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder Subfolder At first I need to get all folders in the directory, after that sort ...
0
votes
0answers
15 views

Can't add Android platform to Cordova project as 'the command “android” failed'

I'm having trouble adding the Android platform to my Cordova project. When attempting to add the platform, I get the following error: Error: The command "android" failed. Make sure you have the ...
1
vote
2answers
32 views

Opening files with MacVim from command line

From my command line I'm inputting the command open .lists This is opening the text file in TextEdit. I'm pretty sure some file extensions will open with MacVim. I'm unsure how to get all text ...
0
votes
0answers
14 views

How can I view the stdout output from an app that I double-click?

How can I view the stdout output from an app that I double-click or use the open -a command to launch? You used to be able to view it (in real time) in the Console app, but it seems that in 10.9.3 ...
1
vote
1answer
21 views

How to cd relative to .command file instead of hard-coding path?

I'm setting up a project template for my office that uses .command files to encapsulate some command-line functions, since not everyone in the office is terminal-savvy. Mostly this is going to involve ...
0
votes
1answer
34 views

Directories will list, but are not recognize by cd

New to terminal and having problems out of the gate. Using Terminal 2.1.2 on a Mac running 10.6.8. Using the "ls Documents" will list the contents, but when I try to change directories, which I tried ...
0
votes
0answers
22 views

How to run --args AFTER Google Chrome is already open

How do run --args after Google chrome is already open? open -a Google\ Chrome --args --"profile-directory"="Profile 1" ONLY works when Google chrome is not running and I would like to know how to ...
-2
votes
3answers
59 views

osx bash grep - finding search terms in a large file with one single line

Is there simple unix command line i can enter which lets me isolate say 512 bytes either side of a search term, even if there is only one "line" in a very large text file? Ok, this should be easy. ...
0
votes
0answers
33 views

Why is there a bash process running in my Terminal if I use Zsh?

When I run the "top" command on OSX Mavericks, a bash process appears even though I am using Zsh, why?
1
vote
0answers
25 views

Dtrace shows posix_spawn called with only 3 argument. Trying to launch by hand

I ran dtruss on a process that launches another one: the League of Legends Launcher starts the main game process with certain arguments that I can't seem to pass via the command line. What caught my ...
0
votes
0answers
25 views

Retrieving data from Disk Utility Image

I created an image of my mac using disk utility. It's a .dmg. It has a lot of data on it (about 1 TB) and I only want one file from it. Is there any way I can selectively pull information from it, ...
1
vote
0answers
206 views

Software: Launching League of Legends spectator mode from Command Line (Mac)

Background: tl;dr at the end League of Legends has a spectator mode, in which you can watch someone else's game (essentially a replay) with a 3 minute delay. Popular LoL website OP.GG has figured ...
0
votes
1answer
42 views

Direct errors in find to /dev/null by default

On my OSX command line, find directs errors to STDOUT. I find this very inconvenient, and I also find it annoying to add 2>/dev/null to the end of the command every time. This brings up several ...
0
votes
1answer
59 views

Unclear on making sense of all the command-line-interfaces (CLI)s out there, and when/why to use them

Some background, I am making the mental effort to start using command line interface for all my work, on Windows, Mac OSX, and LINUX systems. It is true that we have a lot more flexibility in the ...
1
vote
1answer
77 views

Open Google Chrome Specific Profile From Command Line Mac

I have been trying to open Google Chrome from command line but with no luck! I have tried How do I start Chrome using a specified "user profile"? My goal is to open Google Chrome with a ...
0
votes
1answer
28 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
1
vote
1answer
53 views

Command-line Number of thread per process on MacOS

I'd like to be able to get the number of thread per process in command-line and get the exact same number I can see via the Activity Monitor. At the moment the IntelliJ IDEA process (PID 5235) has ...
0
votes
0answers
17 views

Understanding the 'staff' user group

It's known that all users are members of the 'staff' group. If you setup a standard user and create any file, a list of that file in the terminal with 'ls -la' shows the user group to be 'staff'. ...
0
votes
2answers
76 views

How to inactivate network service by terminal on mac os x?

I google but found nothing helpful. the above link was useful when I wanted to create service of any other configuration commands on terminal but I found nothing about how to inactive a service by ...
1
vote
3answers
41 views

Invalid Argument when moving items to new directory. Command works anyway

Here are the steps I took: cd ~ nano .bash_profile alias dtcl='cd ~/Desktop; mv * Desktop\ Cleanup' Ctrl - X Y Save If I run dtcl, it totally works. It moves everything ...
0
votes
1answer
47 views

How do you access a removable device from the command line?

I have a file called list.txt on a USB stick that I want to edit using VI. I can't cd to the usb stick. It appears on the desktop as ESXI. When I run diskutil list it shows up as /dev/disk2 #: ...
2
votes
3answers
83 views

rm -rf doesn't work for an empty directory [closed]

In terminal I try to delete a directory but that doesn't work: myuser$ rm -rf foo/ rm: foo/: Directory not empty In my main directory I have only foo : myuser$ ls foo I haven't any problem with ...
1
vote
2answers
52 views

Can flush DNS command resolve internet speeds?

Was assisting a user that had been downloading 8 movies from iTunes. Her speed was sitting at .06 mbps down with ethernet. Restart and power cycle got her up to 2.36 mbps down. 0% packet loss. I ...
1
vote
1answer
28 views

Strange probs with popd and pushd

Just when I thought I got popd and pushd, when I tried to practice on my own...it all went to hell. I removed the temp directory.I verified this by going through Finder. Then I made a new set of ...
0
votes
2answers
49 views

Please help me visualize popd and pushd

I'm working through The Command Line Crash Course. I've been doing really well, but now find myself completely stumped at popd and pushd. I've read the analogy of a stack of plates or pancakes. I ...
1
vote
2answers
45 views

Batch output md5 with corresponding file name to text file

I'm trying to output to a text file a md5 checksum of each file in a folder in this specific format: checksumhash1 *NameOfFile1.ext checksumhash2 *NameOfFile2.ext checksumhash3 *NameOfFile3.ext ...
0
votes
1answer
87 views

Error starting MySQL server through commandline on Mac OS X 10.9

I am installing MySQL manually on my Mac and during that I started MySQL through command line using this command $ /usr/local/mysql/support-files/mysql.server start Starting MySQL . ...
1
vote
1answer
40 views

Grep and What If 75

I'm trying to run the command from What if 75: cat wordlist.txt | perl -pe 's/^(.*)$/\L$& \U$&/g' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' '2223334445556667777888999' | grep -P "(.)\1\1\1\1\1" I ...
1
vote
0answers
39 views

du on Mac OS 10.9 gives two different answers for the same directory

If I run du on my iMovie Library.imovielibrary I can get two different results depending on how I run du. However, I believe both of these should result in the same value. Behold: davids-imac:Movies ...
0
votes
0answers
24 views

In MacOSX Mavericks, launching an app from the command line versus by double-clicking [duplicate]

In MacOSX Mavericks, what are the differences between launching an app by double-clicking it or through Spotlight, and from the command line? By launching an app such as Emacs from the command ...
3
votes
2answers
60 views

How to create a file and insert a line in it using OS X terminal

How can I do the following using the terminal on OS X? Create a file named .inputrc in your home directory and put this line in it: set completion-ignore-case On
0
votes
1answer
35 views

one-way sync from common folders on various computers

I'm not sure if this is a duplicate, but I'm having a really hard time finding a precooked solution. I have a desktop with 1TB hard drive and 3 laptops with 256GB each. I download a lot of music to ...
2
votes
0answers
81 views

Coloured commands in terminal prompt

I've customized the prompt in my Mac terminal like this: export PS1="\[\e[31,1m\] \w $ \[\e[0m\] " This way I get the /working/directory $ in bold red, but I also want to get the command I execute ...
4
votes
2answers
138 views

Ruby commands are turning off tty echo

After running Ruby scripts, almost 100% of the time, the bash command line will appear to be inactive, while in fact it's silently accepting my keystrokes without showing them to me. This has ...
0
votes
1answer
31 views

Set ENV variable for all commands in current directory in mac os

Is there a way to run all commands in current directory with some ENV variables predefined? Example of what I need: I put some file, say .env in my directory, with: export SECRET='abcd123' Then I ...
0
votes
1answer
97 views

brew install memcached - easy, but where is the config file?

I've installed memcached on osx 10.9 using brew. I want to change default settings, but where does brew look for config file and what is the name? I tried to put it here /usr/local/etc/memcached.conf ...
0
votes
1answer
60 views

How do I access wikipedia offline from command line?

I want to open up an offline version of wikipedia from the command line with a specified article (and preferably a window size and position as well). I've downloaded wikipedia dumps in several ...
0
votes
2answers
104 views

Is there a way to execute global hotkey using the command line?

OS: OS X 10.9.1 Mavericks Is it possible to execute any global hotkeys from the command line? For example, if I wanted to copy and paste, is there a command to let me type the exact hotkey and ...
0
votes
1answer
149 views

How to show full path of a file including the full filename in Mac OSX terminal?

'ls' can show the file name, e.g ls config.inc.php config.inc.php 'pwd' show current folder full path, e.g pwd /Application/XAMPP/xamppfiles/phpmyadmin Is there a command can put them together, ...
1
vote
1answer
62 views

OSX: How can I open Chrome from the command line with specific pages in tabs?

From the command line in OSX, how can I open Google Chrome with a specific list of URLs open in tabs, with certain ones pinned?
0
votes
0answers
30 views

Exporting Variables – Reading Them Returns Blank?

Hi – I'm using Mac OS X (Mavericks), which should be UNIX compliant. In my .bash_login, I'm exporting variables for Cocos2D-X. I know this is executing, as I have a 'echo Test' line that executes ...
0
votes
0answers
8 views

How can I mark locations in a live log file?

I'm trying to diagnose a problem on my Android phone using logcat on my Mac. I've been piping the live system logs out to a file, then doing the six steps on my phone to reproduce the issue, then ...
2
votes
1answer
112 views

Permissions for 'Sites' folder (apache) are wrong

My head is a bit mashed over this. I have moved from MAMP to using Mac's own AMP stack, and have got it working, but just CANNOT get the directory permissions right. My localhost points to ~/Sites ...
0
votes
1answer
188 views

How to force a new dhcp discover

I'm analysing my network traffic at home and I want to force my mac to completely renew its dhcp stuff. Renewing my dhcp lease only reveals 2 dhcp packets sent over my interface but I wanna see the ...
1
vote
1answer
33 views

What file(s) does OS X store its version number in?

I've seen it before, but after a few minutes of Googling I'm coming up empty -- does anyone know/remember what file OS X stores its version number in? I'm trying to figure out the version of OS X on ...
0
votes
2answers
53 views

Redirect a cat command when using wildcards as input

I have the following command that takes a certain part of a file in the current directory, writes it to a temporary file, gets a part of another file one directory up, writes it to a temporary file ...