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

-2
votes
1answer
18 views

Stop powerline hovering above bottom of full-screen terminal

When in full-screen mode ("full-full", not just maximised with menu bar still showing) Powerline inside Terminal.app hovers slightly (about it's own height) above the bottom of the screen. Does ...
1
vote
1answer
37 views

How can I change 'history' command output?

So by default .bash_history stores 500 last used commands. I changed that to 5000 by setting HISTFILESIZE=5000 in .bash_profile It seems to work. Now when I do history it still prints 500 commands, ...
0
votes
0answers
25 views

File name autocompletion stopped working in Terminal

I just noticed this. Previously, when I typed cd Doc<tab> I would get cd Documents. Now I get cd Doc. If I hit tab again it just appends more tabs. I only have one Doc* directory: $ ls -d ...
0
votes
1answer
31 views

Why isn't this alias in terminal working?

The alias's objective is to launch a pdf in my chrome browser. The pdf is entitled "Intro to Java.pdf"; the browser is "Google Chrome" alias x='open -a "Google Chrome" ...
0
votes
0answers
14 views

launchctl error “nothing found to load” when run via cron

On OS X 10.9, I'm running a script via my user crontab (added using crontab -e) which, under some specific conditions (not related to this question), will run the following command to launch a menubar ...
0
votes
0answers
10 views

View output from script running in background

While messing around with some Ruby programming (Using OS X 10.9.x), i have constructed a script which is forked to the background, and constitutes a loop which only exits after another process is ...
0
votes
1answer
29 views

Applescript - Get information from terminal command

I'm creating a little script to allow quick changes to the network settings of my Mac. I have got it all working, but I wanted to be able to see what the settings are before I change them in the first ...
1
vote
0answers
21 views

In bash script, how to have a script that runs in the background and starts when an application is opened

I'm making a script which should run when I open Safari. I want it to open when the user logs in and run in the background, then have part of the script to run when Safari opens. Is this possible in ...
-5
votes
2answers
57 views

How to display standard Linux libraries of OS X in terminal?

Platform: OS X: Yosemite 10.10.4; MacbookPro 15" Retina (mid-2015). I am new to OS X, I want to explore the underlying operating system and it's Linux components especially. Linux has standard ...
0
votes
1answer
42 views

Is there a way to access the “Recent Items” list from the terminal?

The Apple menu "Recent Items" entry is handy, but at times I would like to be able to access it via command line, e.g. to change to a directory I was just working in with a GUI app. Is there a way to ...
1
vote
2answers
63 views

OS X Terminal: 'ls' with 'grep !'

I would like to list all files in folder without one. I created this command ls /Users/MartinBengsch/Library/Safari | grep ! "Extensions". The problem is that the Terminal doesn't understand the not ...
2
votes
2answers
28 views

Is there a way to preserve terminal tab history across computer restarts?

I'm using Mac 10.9.5. When I run a terminal with multiple tabs (using bash shell), I've noticed that when my computer restarts, the terminal will open up with the same number of tabs that were open ...
1
vote
2answers
75 views

Why doesn't the 'rm' command dump file in Trash?

Using the rm 'filename' command, i have noticed that the file isn't actually deposited into the trash. I realise that this isn't completely removing the file from the computer, however im perplexed as ...
1
vote
2answers
61 views

Remove all files in folder apart from one using OS X Terminal

I would like to remove the whole content of a folder, apart from one file. The problem is can't copy the file to another folder and then back to the first folder, because then the application doesn't ...
0
votes
1answer
34 views

copy folders to user library using Terminal on OS X

I would like to copy a folder to the user library using the OS X Terminal. The command line I use is cp -r. The problem is that the command runs, but it doesn't copy the folder and it returns no ...
0
votes
1answer
43 views

To get newer man pages in OSX?

I noticed that my manuals are very old in my system although all updates done. Etc man cmp tells about the flag -l -l --verbose Output byte numbers and values of all differing bytes. ...
1
vote
1answer
54 views

Where are stored C “object” and “executable” files in Xcode?

Platform: OS X: Yosemite 10.10.4; Xcode: v6.4 (6E35b); MacbookPro 15" Retina (mid-2015). Fact: As C compiler and linker (upon standard) create .o and executable file(s) Questions: Where (please ...
1
vote
1answer
41 views

Turn Wifi off/on with a single key?

Is there a way to assign the WiFi on/off function to one of the function keys like F4 that I otherwise never use? I assume Applescript would be required. However I may want to use a BASH script ...
0
votes
0answers
24 views

Nano: how to obtain syntax highlighting?

I have a default installation of nano under /usr/bin/, and I am trying to make nano highlight the bash scripting language code. I have been searching around, but I had no success: I got always some ...
1
vote
2answers
185 views

How to resolve: files which are visible in Terminal, but invisible in the Finder?

In Yosemite v10.10.3, I am trying to reinstall Skype, as it does not sign-in at all, following this link. In order to do so, I need to move some files and folders to trash as to totally uninstall ...
1
vote
2answers
34 views

Stop prompting to unlock disk

I have two hard disks on my 2012 Mac Mini. The first disk is partitioned with Mac HD and Data HD. The second drive has OS X Public Beta and Windows partitioned. I want to prevent OS X on my main disk ...
1
vote
1answer
107 views

Terminal Command Line to find corrupted files

I do have just one corrupted photo into my Photos Library. Is there is any UNIX command line that I can use in terminal in order to scan my Photos Library Folder and find out which file is corrupted? ...
0
votes
1answer
18 views

Folder created in Photoshop not showing up in finder

This is really crazy issue i'm experiencing here: I downloaded the newest Photoshop CC 2015 and started working with it to crop some images for a client. After that, i've saved all the images for the ...
1
vote
2answers
77 views

Could not determine GDB version using command: sudo /usr/local/bin/gdb --version

Eclipse (Mars) version (C programming language): Eclipse IDE for C/C++ Developers eclipse.buildId=4.5.0.I20150603-2000 MacOS version: OS X Yosemite 10.10.3 HW: MacbookPro 15" (mid-2015) Retina ...
0
votes
0answers
24 views

can't use installer to install pkg. file

When i try to install flash pkg with installer, the installer just jump on the dock and can't open, then i try to install in the terminal installer -pkg Desktop/Install\ Adobe\ Flash\ Player.pkg ...
2
votes
2answers
45 views

To install GNU time in OSX?

BSD time gives this kind of output 9990 real 0m4.371s user 0m1.548s sys 0m2.167s GNU time gives then again this kind of output 9990 1.56s user 1.46s system 82% cpu 3.648 total Brew search ...
0
votes
1answer
20 views

How to have more than one app in desktop space?

Whenever I click on the maximize/full screen icon on any window, the app window is going to a new Desktop space. But this is kind of distracting because now I am not able to switch apps by doing the ...
1
vote
2answers
54 views

Get part of result of command line in OS X

I would like to use the following command line to get the current Wi-Fi channel. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I I would like to use ...
0
votes
0answers
18 views

Script - Audio Files - Find, Count and Sort by type

I have a very large audio collection I have to sort. It's a mixture of M4A, FLAC, AIFF, WAV and MP3. It's the result of years of work by a now deceased person who sat in their garage ripping their own ...
0
votes
0answers
17 views

Want to copy whole data disk to ~/Backup/ and then eject, but having trouble finding the disk

I'm trying to write a script that searches for a disk in the external drive, if present have it rip the disk into a folder with the disks name and then eject, then continue searching for that disk. ...
-1
votes
1answer
43 views

Unable to delete locked file

I have a locked file on my machine that I'm unable to delete. I've tried everything (that I know of) and don't have a clue why it won't delete. Here's what I tried: Everything here sudo rm file.txt ...
2
votes
2answers
27 views

Command + fullstop VS Ctrl + C

Is there any difference between ctrl+c and cmd+. when stopping a terminal process?
0
votes
1answer
39 views

Trying to Install WWW:Mechanize and Getting Localhost Error

Okay . . . I've been trying to install WWW::Mechanize through CPAN and it always chokes at this line: t/local/back.t ........... 1/47 Error GETing http://localhost:60603/: Can't connect to ...
1
vote
1answer
43 views

Remove .plist from /LaunchAgents

Before I go to the issue, I did find a similar thread, but it's quite outdated and I'm not sure if it suits for me. Around two years ago when I got my Mac, I decided to install Seagate Media Sync for ...
0
votes
1answer
31 views

Get terminal application name from shell

I am used to my osascript aliases. In particular, I have nx for opening new tab and closing the old one. However, my scripts use application name to send keyboard signals to it. Instead of writing it ...
0
votes
2answers
103 views

Update bash to version 4.0 on OSX

Is it possible to actually update bash to version 4.0 in OSX Yosemite? echo $BASH_VERSION 3.2.57(1)-release This article and this thread refer to the same question, but they install a new shell ...
0
votes
1answer
28 views

Paste tool for OSX

There is paste tool in Linux but have not found for OSX. Its name was probably dpaste or something in Linux. Assume you run xxd -ps r328.raw | head -n2430 and you want to paste it to your friend. ...
1
vote
1answer
50 views

Can't see hidden files with Standard user

I am using my Mac as a Standard user. Running latest OSX 10.10.3 I have used the following command from terminal: defaults write com.apple.finder AppleShowALLFiles YES But I still can't see my ...
0
votes
1answer
27 views

What is the “host name” in bash? (\h or \H)

I set PS1="[\u@\H \w] in bash. So it should print the host name. But I do not understand the meaning and nature of the host name. Basically, I would assume that it is just a name I assigned to my ...
1
vote
1answer
28 views

To use STDBUF from Homebrew's coreutils

I run brew search stdbuf and get No formula found for "stdbuf". Searching pull requests... Closed pull requests: coreutils: upstream fix for stdbuf (https://github.com/Homebrew/homebrew/pull/32955) ...
0
votes
1answer
77 views

To install unbuffer in OSX

There is the terminal command unbuffer in Linux Redhat, for instance. I did not find it in homebrew. How can you install unbuffer in OSX Yosemite 10.10.3?
0
votes
1answer
55 views

Warnings when installing pip

I just installed pip and got a few warning messages. Should I be concerned? Is there a way to check that pip was installed properly? Here's what I did: [mchenja@mycomp ~]$ sudo easy_install pip ...
0
votes
0answers
17 views

How to open application through notification in terminal shell

I have the following command to run in a terminal shell script: osascript -e 'display notification "This is a Text" with title "This is a Title"' This is a shell code running in applescript to open ...
0
votes
1answer
36 views

OS X cd command in /usr/bin instead of /bin

On OS X 10.8 I was looking at my /bin folder and found that cd was not there, but rather in the /usr/bin folder. Why is that? From the FHS (Filesystem Hierarchy Standard. I know that /bin should ...
0
votes
1answer
28 views

Altering a hard linked file in one location seems to destroy it in another location

I have a file, myfile.txt, located in folder1. From the terminal I create a hard link to this file in another directory with the command ln myfile.txt ~/Documents/folder2 The new file appears as ...
0
votes
0answers
41 views

SSH configration periodically gets overwritten and lost in yosemite

On Yosemite 10.10.3 my ssh configuration "~/.ssh/config" for hosts and keys will always get lost and gets overwritten with only this one line UserKnownHostsFile="/Users/user/.ssh/known_hosts" I ...
1
vote
1answer
36 views

Switch profile of current Terminal

Is there a way to switch the profile of an already-opened Terminal window? Let's say I already have a Terminal window opened with Basic profile. Can I switch it to Grass profile? I seem to only be ...
1
vote
1answer
24 views

Is it possible to restore PATH? [duplicate]

So I accidentally run in terminal command export PATH="/usr/bin/php/bin" which override my defaults and none of the commands aren't responding. MacBook-Pro-Kil:home $ sudo -bash: sudo: command not ...
2
votes
1answer
47 views

Opening links on Mac Chrome app in Incognito Mode

Is there a way to open a certain link with Chrome app Incognito Mode using the Terminal app on my Mac? (I want to input the link in the command as well).
0
votes
0answers
57 views

rsync error: connection unexpectedly closed

I'm trying to backup some folders on an ubuntu server to an external G-Drive, connected through thunderbolt to my iMac, in this manner: $ time nohup sh -c 'rsync -avz myuser@myserver:/home/user/ ...