1
vote
3answers
33 views

bash-command not found; for every command == fear i could screwed up the path

here is the output of echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin and when I gave cat /etc/paths this is the output /usr/bin /bin /usr/sbin /sbin /usr/local/bin I am ...
1
vote
2answers
291 views

Accidentally removed all commands in terminal

I was following a tutorial and put in the following line: export PATH="~/.composer/vendor/bin/" Now no commands work at all, not even things like ls. What does the command do that I copy and ...
2
votes
1answer
24 views

dd ruined my USB stick, how do I recover?

I tried to copy a Linux distro over to my USB using DD. But half way through it failed because the computer went to sleep or something. I plugged the USB in and I get a message saying it's unreadable ...
0
votes
0answers
130 views

How to access a connected iPhone device from within Terminal?

How can I access the connected iPhone or iPad from within Terminal on OS X? I want to get all the photos (only photos) from the connected iDevice and save it to any directory in my OS X filesystem. I ...
0
votes
0answers
42 views

OSX 10.9: GCC standalone (non-admin)

I have a Mac Mini at home, with my own administrator account. My school provides MacBook Airs. I have XCode installed on the Mini, but I only use the command line extensions-- GCC, G++, etc. I don't ...
0
votes
1answer
256 views

Using visudo to edit sudoers on Mac

I have managed to make the sudoers file on my Mac erorr. eg. $ sudo visudo >>> /etc/sudoers: syntax error near line 45 <<< sudo: parse error in /etc/sudoers near line 45 sudo: no ...
0
votes
0answers
15 views

Strange word in Terminal Bash Prompt [duplicate]

When I launch terminal I'm greeted with: Last login: Thu May 1 15:36:29 on ttys000 fib:~ nyx$ What is fib and why is it there? Will be great if help can be provided to troubleshoot this...
2
votes
2answers
1k views

Alfred: How to get Alfred to run a terminal command?

I often need to run multiple copies of an app, like VLC. For this I use the terminal and run a command similar to: open -n /Applications/VLC.app How can I create a shortcut with Alfred to run this ...
0
votes
0answers
197 views

hdiutil returns error when creating Ubuntu USB stick

I am following an online tutorial for creating an Ubuntu USB stick on OSX but I'm stuck in step 3: Convert the .iso file to .img using the convert option of hdiutil (e.g. hdiutil convert -format ...
1
vote
1answer
145 views

File tree list Mac Terminal

I am trying to create a .txt file that is the output of a certain function in the terminal. So my function is to create a list of all the files that i have inside the folder TEST so what i typed was: ...
1
vote
2answers
309 views

how to set mac desktop background as working terminal

I would like to set my background to a working Terminal window even when I minimize all applications. I would like to be able to write commands on desktop but I don't know if it is even possible. I ...
2
votes
1answer
58 views

Is there a tool to save a snapshot terminal session for later recovery, like a virtual machine?

I work on multiple projects with multiple type of servers required, and when I switch project I shut down any of the applications and start the ones I need at that moment from the terminal. I ...
0
votes
1answer
50 views

Where to Install Applications when using Terminal? [duplicate]

I use the command line a lot to download and install applications. I've always downloaded into the /tmp directory then installed to another directory. But where is the place to install such ...
1
vote
4answers
675 views

Is there any way to save Mac OS X preferences into a shell file?

Whenever I reinstall my Mac OS and/or buy a new Mac, I have to configure manually almost all the options of mouse, dock, etc. I'd like to know if Mac OS or some software can provide some way to save ...
0
votes
2answers
584 views

what shell would you recommend using on mac? [closed]

I'm new to Mac (using Mavericks) i thought to install zsh. Do anyone has a recommendation for a useful shell for mac?
1
vote
2answers
377 views

What does Control key do, other than its usage in terminal and right click?

So far I have been using control key to: Send control commands to terminal Occasionally do right click Does the key have any other function?
2
votes
1answer
801 views

OS X's hidden preferences disappeared after Mavericks upgrade?

In past OS X versions, I used some commands to set preferences on my Mac. For example, I used the following command to enable selection of text in Quick Look: defaults write com.apple.finder ...
3
votes
1answer
616 views

Mac terminal command: how to 'ls' for some specific files?

My question is about the ls command. If I have too many files in a folder, I might need either: ls files with a given type only or; ls files within a range, i.e., files with names a* to b*.
1
vote
3answers
2k views

How To Securely Erase Free Space Using Terminal?

A friend told me that when you delete a file on your Mac in the normal way it actually stays where it is, but it is just no longer usable by your Mac. The addition of more files to your Mac causes ...
2
votes
1answer
111 views

Search files across folders and move recursively to new folder

I need a way to search from a base folder, all the folders inside of that one recursively, and find all photos of JPG and PNG that were created before a certain date (01.Feb.2013) and then move them ...
4
votes
1answer
292 views

Printer Deploy with and custom preset profiles to Mac OS X workstations

How would I go about deploying a network printer (Sharp MX-2600N) to Mac OS X machines that would include a custom printer preset profile (Embedded Printer User Authentication Code)? Ideal Method of ...
0
votes
2answers
165 views

how can I write on my screen using terminal?

How can I write on my computer screen or open an application like notes and write on it from Terminal?? I can open up notes or any other app/document.
1
vote
0answers
50 views

Is there another way apart from screencapture to take a screenshot of a background window?

I'd like to take a screenshot of a background window given its title. I know this can be made with screencapture -l idwindow output but unluckily I can't use this method because I'm on a 10.5.8 ...
2
votes
2answers
266 views

What is the default speaking rate for the speech synthesis program?

I've been looking all over the internet, but I can't seem to find out the default speaking rate for the in-built speech synthesis program on Mac OS. say "What to say" -r <rate> As shown above ...
0
votes
0answers
161 views

Why am I getting these errors when trying to install php 5.5.0?

So I am trying to upgrade the native php installation on my mac and i keep getting these errors: ld: library not found for -ljpeg clang: error: linker command failed with exit code 1 (use -v to see ...
2
votes
3answers
528 views

cal command - start monday

I was wondering - is there a way to make 'cal' (a terminal program) start the week on monday? Usually it can be done with the -m flag, but this does not have any effect on the Mac. AFAIK, for ...
0
votes
2answers
90 views

Terminal has gone weird after screen sharing

I used screen sharing on my Macbook Pro to remote control my friend's iMac. Unfortunately, now my Terminal now says: kellys-iphone-2:~ James$ Why is it now saying this all of a sudden? Where has ...
0
votes
3answers
10k views

How can i reset my Terminal?

just some time ago i installed the OS X Server app on my mac and since this day it always appears server as the chosen directory in my terminal. But because i dont really like the Server application ...
2
votes
1answer
564 views

How do I make a bash script so that I can drag its input on top of the icon?

I need to make a bash script to that I can drag a .rar file on top of it and then the script will receive the pathname of that file as argument 1 ($1). I have made the bash script, but how do I make ...
0
votes
2answers
104 views

How to build a simple app that turns text to m4a files

I'm learning Chinese and want a way to quickly generate and save words and phrases to m4a files. I've managed to do pretty much what I want in terminal, but I can't seem to figure out how to make an ...
1
vote
1answer
2k views

Terminal shows hostname from old machine, not new machine

Right now I have a Mac Mini. I migrated macbook pro data from a time machine, but I didn't do it from the beginning of my startup. I used the migration assistance to migrate the data. However, I'm ...
1
vote
2answers
272 views

Check if Network Accounts are avalible

We have a domain running Microsoft Active Directory and in that domain there is a number of Mac computers running Leopard and later. Sometimes the users are met by a red dot at the login screen, ...
3
votes
1answer
162 views

Mac Terminal support for multiple fonts

I was trying to get emacs minimap to work on the terminal - http://www.emacswiki.org/emacs/MiniMap However, the font is the same size as the rest of the screen, which makes it pretty useless. It ...
1
vote
2answers
3k views

Terminal returns not found for most commands Mac OSX

I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. Having done so, I typed in sudo port install wine and ...
1
vote
1answer
1k views

The Command to enter login items is not working in 10.8

I am entering the login item from the terminal but, this command is not working for me: defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add ...
6
votes
6answers
6k views

Improved Terminal autocomplete funcionality (similar to Matlab's)

If any of you ever used Matlab, you might have noticed the command window functionality in that program. I wonder if it is possible to enable the same functionality in Mac Terminal. It works like ...
0
votes
1answer
1k views

Access applications and their folders from terminal

I have a folder that I want to init with git, but to do that I have to 'navigate' to that folder using cd. The problem is when I write cd Applications, that folder is empty and I cannot go into ...
7
votes
1answer
917 views

Why does the folder icon in my Terminal have a question mark overlaid?

From time to time, I spot that the folder icon in the titlebar of one of my Terminal windows has a question mark overlaid on it, e.g. this one: What does this mean? It doesn't seem to have any ...
6
votes
2answers
2k views

What terminal command or program can list an SSD's Power On Hours?

I'm looking to script using the unix shell the retrieval of SSD (and HDD) data that disk utility shows in the information window. I'm immediately interested in the Power On Hours and Power Cycle, ...
4
votes
1answer
2k views

Mac OS X Terminal: Commands not found

I really don't have much experience with Terminal and I believe I may have caused a problem when trying to download and use wine on my Mac. If I try to type in anything I simply get "Command not ...
4
votes
4answers
7k views

How to rename multiple files at once?

I want to rename multiple files at once. For example: Picture1.jpg Picture2.jpg Picture3.jpg Picture4.jpg into Vacation-Picture1.jpg Vacation-Picture2.jpg Vacation-Picture3.jpg ...
2
votes
1answer
2k views

Delete all OS X accounts in terminal when selling laptop

I have an old macbook with some photos on it that I'm trying to sell. I want to keep the OS on there so that someone new can use it, but I have to wipe it through terminal because the screen is mostly ...
3
votes
3answers
370 views

Any way to force command line terminal to control a Mac?

I'm experimenting a little with Automator at the moment and often get stuck with some pre-recorded automation running very slowly while the whole Mac (an 2010 iMac in my case) doesn't respond to any ...
2
votes
2answers
149 views

Geeky terminal for OS X

I want to bind a certain command to show a terminal on screen without window frame with the command of my choice. I plan to use it to quickly launch network monitoring tools (trafshow) when I use a ...
2
votes
1answer
415 views

bash file recovery?

I think I messed up my bash file /bin/bash when trying to create my first script, it displays a message saying "process completed" and locks my terminal, if I switch to another shell e.g sh, then it's ...
0
votes
3answers
7k views

bash: brew: command not found [closed]

I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I ...
0
votes
1answer
560 views

unable to run ddd on mac

I am trying to install ddd debugger on my MAC. It installed fine, however when I try to run it I get the following error: bash-3.2$ ddd test Error: No `Ddd' application defaults file To resolve this ...
1
vote
1answer
486 views

Bash problem Mac OS Terminal

Hi when I pressed the up arrow to see the previous command, it rewrote the current command from half. Example: 21 /usr/local/sphinx/etc > /usr/local/sphinx/bin/search --config ...
8
votes
3answers
4k views

How can I dim the screen from Terminal?

Is it possible to dim the screen from Terminal, in a Mac with OS X Lion? Is there any command to do control brightness and volume?
17
votes
7answers
2k views

Case-insensitive ls sorting in Mac OSX

How can I make the ls command in Max OS X Lion sort files and directories similar to how Ubuntu Linux does (case-insensitive, directories NOT on top, dot files NOT on top)? Ideally I'd like to do ...