Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

0
votes
0answers
11 views

Python script executable opened by text editor

I have a simple "Hello world" script that I want to turn into an executable. The problem is that even though I went through the steps of declaring the path of the Python interpreter in the first list ...
1
vote
1answer
23 views

Mac terminal stop hard drive from spinning

Can I stop hard disk drives from spinning using Terminal? The reason why I want to know is because I have my Mac to backup at midnight however I do not want my HDD to be spinning all the time. I ...
0
votes
1answer
23 views

ss (netstat alternative) for OS X

How do I install ss on OS X? I couldn't find the iproute package in homebrew. Red Hat recommends ss over netstat in Red Hat Enterprise Linux 7. ss is provided by the iproute package. Red Hat ...
0
votes
1answer
34 views

Why is cp command 4 times slower than copying in Finder in OS X 10.6?

I accidentally stumbled upon this issue: Copying a 119 MB zip file took 4 times longer in Terminal (cp) than in Finder! I copied a file of 119 MB size in Terminal with time cp file.zip file2.zip ...
0
votes
0answers
16 views

How to paste Chinese/Unicode characters to Terminal?

I'm trying to paste some Chinese: 你好世界 to my Terminal, but instead I've got ^L or some other weird characters. The same happens for other unicode characters (such as £āēīōūśṣṭēīōū) when pasting or ...
1
vote
2answers
40 views

How to show hidden files in finder? [duplicate]

In terminal I ran: defaults write com.apple.finder AppleShowAllFiles TRUE and killall Finder If I CMD + SHIFT + G /usr/local/.git I can see the folder. However, if I CMD + SHIFT + G and go to ...
1
vote
1answer
10 views

How do I create a symlink to MVim configuration files?

I want to store my configuration files in source control and symlink them so they will be used by MacVim. Looking at :scriptnames I see vimrc and gvimrc being used in: ...
-1
votes
1answer
24 views

How to download pictures from a website using terminal

What terminal command should I use to download all Leonardo DiCaprio pictures of this website to my Desktop : http://leonardodicapriofan.com/photos/thumbnails.php?album=334
2
votes
2answers
54 views

Insert Character on batch folder rename

I have a folder that has several hundreds of thousands of files named like "ABC 123456". I need to add a dash after between the two blocks of text like this "ABC - 123456". Leaving the trailing space. ...
0
votes
1answer
14 views

Syntax error: No operation specified when trying to resize Ubuntu VM

I'm trying to expand the hard drive of my Ubuntu VM in VirtualBox from my Macbook Air terminal. But when I type in VBoxManage modifyhd <uuid>|~/VirtualBox VMs/Ubuntu/Ubuntu.vdi --resize 20000 ...
0
votes
1answer
31 views

Is there a way to get a list of all currently running program's window titles with AppleScript?

I'm looking to write a script which outputs a list of all the window titles of all the currently running programs. Is there any way to do this with AppleScript? I tried running the following code: ...
0
votes
1answer
16 views

Determine and Use Resolution as a Variable in UNIX script on Mac

I'm deploying a NetRestore image to multiple kinds of Macs: MacBooks, MacBook Pros, Mac Pros, iMacs and Mac Minis. I have several custom designed login screens that I'd like to use but everything ...
1
vote
0answers
18 views

Mac OS X Yosemite connectivity issue

Every so often my MacBook Pro starts getting very intermittent network connectivity. I have a Virgin Media SuperHub. Pinging my router gives me lots of request timeouts: 64 bytes from 192.168.0.1: ...
0
votes
0answers
18 views

SSH via sudo cron on Yosemite

I have a shell script that is supposed to run via cronjob on Yosemite, also when no user is logged in. I discovered the cron has to be edited with sudo crontab -e to do that. The script connects to ...
1
vote
2answers
45 views

How to remove space character (whitespace) from end of filenames and foldernames?

Problem with mac is that it allows space character at end of file or folder. If this file or folder with space character in end is beeing copied to FTP using Filezilla or Dropbox then mac makes ...
0
votes
0answers
45 views

ssh from mac to linux

I am still a beginner with using terminal. I am trying to ssh from my mac at home to a linux at my university. I am using VPN to connect to the network. When I ping the IP address of the computer I ...
1
vote
1answer
26 views

Automator service: delete last page from PDF with use of pdfsplit via bash

I would like to design a simple Automator service that would delete last page from PDF passed via finder. My proposed syntax for the Shell Script is: for f in "$@" do pages=`pdfcount "$f"` ...
1
vote
1answer
13 views

Processing of Port Wine Failed

I was in the process of installing Wine on terminal (via Macports), and encountered this hurdle while "computing dependencies": "---> Verifying checksums for xorg-libpthread-stubs Error: ...
1
vote
1answer
21 views

ln -s symbolic link command error

I tried to use the ln -s command to create a symbolic link to offload storage onto a separate volume and get the following error: ln -s/Volumes/NONAME/POP-emailaccount@provider.net/ ...
1
vote
2answers
54 views

Why `echo -n` doesn't work in this script on mac terminal?

I am learning shell from tutorialspoint today:http://www.tutorialspoint.com/unix/unix-shell-loops.htm And I copied this code block to a loop.sh file: #!/bin/sh a=0 while [ "$a" -lt 10 ] # this ...
0
votes
1answer
28 views

What this ifconfig output telling me?

What is this output of ifconfig telling me? Any explanation of the first in particular would be sweet. A:~ Linda$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 ...
1
vote
1answer
42 views

Sudo Shutdown Now on Mavericks

I had read that you can "quietly shut down to single user mode" by running, within terminal: sudo shutdown now This sounds far preferable to having to restart the computer and hold CMND+S. However ...
1
vote
1answer
30 views

Terminal command ncdu

I've seen the terminal command ncdu is available in various flavors of UNIX. Does anyone know if the same terminal command is available in OS X? Thanks for any help. It is greatly appreciated.
2
votes
2answers
39 views

How can I set the default width, height, and position of my Mac terminal app?

How can I set the default width and height of my Mac terminal window so that it always opens the way I'd like it to. Currently, every time I launch the terminal app, I need to resize it.
3
votes
0answers
48 views
+50

How do I change the color in Terminal indicating the use of a dead key?

A dead key (a key that does not generate a complete character by itself but modifies the character generated by the key struck immediately after) is indicated with a yellow background to previous the ...
0
votes
0answers
11 views

Sudo giving dyld problem. Help for a beginner

I am new to using a macbook terminal. Initially when I used the terminal for working on Raspberry Pi everything was great. But now when I try to use the terminal and type sudo it keeps giving a dyld ...
0
votes
2answers
49 views

multiple terminal launchers on the dock?

I have a terminal shortcut on my dock which I use every day. Depending on my monitor setup (extra, 2 extra, etc.) to my Macbook Pro, I like to have a different launching scheme (either 4 windows or 5 ...
0
votes
1answer
11 views

Listing only Mobile Accounts in terminal

I have a way to list all the accounts in Mac via terminal using the dscacheutil command. Is there any way to get to know if a particular account is a mobile account or not from the terminal?
1
vote
1answer
29 views

Changing Info.plist values via terminal

I am making my own application and I would like to change some values in my Info.plist file using terminal. I have tried doing defaults write Info.plist CFBundleExecutable -string <Executable> ...
8
votes
3answers
473 views

How much data has been written to my SSD over its lifetime?

Is there a Terminal command which will show me how many GB has been written to my SSD through the whole lifetime of the disk? I'm asking because I want to find out how many cycles have been done. SSD ...
1
vote
1answer
23 views

Customize existing keyboard layout

I need to invert the behaviour of 2 key in my keyboard ("<" is inverted with "\"). I can do this easily with "Karabiner", but for me is a solution without an explanation. I'm linux user and ...
1
vote
0answers
30 views

How to Hide All users from fresh boot With FileVault 2

With System preferences>Users & Groups> Login options> display login window as "Name and Password" normally you need to type out the user name and password to sign in. With FileVault2, when ...
1
vote
1answer
30 views

In Terminal, how do I add a host key to the file known_hosts?

In Terminal, how do I add a host key to the file known_hosts? Also, how do I remove a given host key from the same file? I trying to ssh into a computer at my school and when I type in the command ...
1
vote
1answer
13 views

Skip first terminal beep and to display ambiguous filename expansions

Pressing TAB in the terminal (and in fact some surprise places in OS X's GUI!) either completes the only filename with the prefix provided to the immediate left of TAB, and when there are several such ...
2
votes
1answer
50 views

Delete key doesn't work in vim on iTerm2

Firstly, I typed some thing on insert mode, like Hello At this stage, if I didn't exit from insert mode, delete works and can delete the whole word if I want. If I quit insert mode, and open ...
0
votes
1answer
21 views

How can I copy a selection of files from multiple folders into multiple folders?

I am developing an Android-app in OS X, and want to use some third-party icons. I have downloaded and extracted the icons into this folder structure: drawable-mdpi ic_icon1.png ... drawable-hdpi ...
2
votes
1answer
42 views

Tilde (~) File in Macintosh Directory

Last night I discovered what looks like an unusual file named "~" (tilde) in the root of my "Macintosh HD" directory on my MacBook. Finder reports the file is 2.2MB in size, of kind "TextEdit.app ...
0
votes
1answer
15 views

How to run Unison through automator?

I like to set up unison through Automator to run in the background to sync up two of my folders in a dropbox-like manner, but Automator apparently fails to run unison through shell script. I have ...
0
votes
1answer
22 views

I get “command not found” when running a new shell, (and none of my aliases, etc. are noticed). What's wrong with my .bash_profile?

Terminal.app Here are the my preferences settings: !/Users/Parker/Desktop/0.png !/Users/Parker/Desktop/0.5.png !/Users/Parker/Desktop/1.png !/Users/Parker/Desktop/2.png Here is the contents of my ...
0
votes
0answers
25 views

How to adjust a desktop picture through the command line (terminal)?

So after some research, I came along this wonderful little gem for setting a desktop background through the command line. osascript tell application "Finder" set desktop picture to POSIX file ...
0
votes
1answer
45 views

How to repair and/or reinstall Homebrew safely?

I am trying to repair Homebrew. I recently tried to reinstall it but when I typed "brew doctor" My output was: shell-init: error retrieving current directory: getcwd: cannot access parent ...
0
votes
0answers
22 views

Can't ssh into iPhone

I used to be able to do this a while ago, but now, for some reason I can't. I have installed and later reinstalled OpenSSH on my iPhone. ssh root@10.0.1.16 Returns that the connection to 10.0.1.16 ...
3
votes
1answer
32 views

Making directories list first in terminal with `ls`

Is it possible to make the default of Terminal such that when I use the ls command it lists the directories first and then the files? I figured out that this can be done by using coreutils and the ...
2
votes
1answer
42 views

Open Terminal.app but hold open?

I have a shell script that runs on my mac (./go), it opens a ssh session on a raspberry pi then runs a script which streams video from the raspberry pi to a UDP port on the mac. I also need the mac ...
0
votes
1answer
194 views

How to find out what the Wi-Fi password is, of the network that I'm connected to, without the admin password?

I logged on to a Wi-Fi network on my friend's computer and they forgot their admin password. They want me to find out the password, but I can't get into the keychain. But I am still connected to the ...
0
votes
0answers
9 views

How to perform a find with Chinese characters?

I'm ssh'd into my iPad 2,1 running iOS 8.1. I'm trying to do a find for "PP越狱": fermat-ipad:/ root# find /var/mobile/ -iname XXX When I enter the Chinese name for XXX, I get: (arg: 1) find ...
0
votes
1answer
26 views

Use shell wildcard OR with diskutil

I have the following terminal command, which matches volumes called A001R45R, A123R45R, etc. diskutil eraseVolume HFS+ FreshMag /Volumes/*R45R But I also want it to match volumes called B001R4G5, ...
0
votes
2answers
28 views

Terminal: how to make tab notify somehow when new text received

I'm familiar with some Terminal's, like in Linux, that have an option to "flash" or "change color" the tab's title text, whenever new text is "displayed" on that screen (for instance, tailing a file). ...
0
votes
2answers
29 views

Any Pdfinfo -terminal tool in OS X?

I am trying to find any default tool in OS X by which you can see in Terminal the encodinf of a pdf file. You can do this visually by clicking info on the file. For instance, such files which have ...
0
votes
1answer
46 views

How to get the wi-fi connection status from terminal?

Sometimes, when waking up my mac, I get the message "Alert: No internet connection" on the Wi-Fi icon. I can solve it everytime by turning Wi-Fi off and on again. Is there a terminal command I can use ...