Most Popular

1500 questions
106
votes
4 answers

how to find out the start time of last sleep

Is there a command to find the date and time at which a Macintosh computer last entered the sleep mode?
newenglander
  • 1,527
106
votes
10 answers

How to decrease .pdf size without losing quality

Background I want to decrease size of the .pdf filled with images. In Preview in can be dome through Export and set Quartz Filter-> Reduce File Size before saving. Problem The file indeed decreased from ~30MB to 0.37MB. But the result has such…
michalczukm
  • 3,487
106
votes
4 answers

How can I type unicode characters without using the mouse?

I want to type unicode characters with the keyboard. I'm looking for a solution with no mouse usage. For example, below I have a line with the unicode "PILE-OF-POO" character: The codepoint for PILE OF POO is U+1F4A9 and on a linux operating…
wim
  • 1,414
106
votes
7 answers

How to remove unused MacPorts packages?

Whenever I install a program via MacPorts, it gets and installs lots of dependencies. When I uninstall said program, how do I make MacPorts recursively remove all unused dependencies with it?
hpy
  • 5,545
105
votes
4 answers

Consequences of deleting .DS_Store

If I manually delete a .DS_Store file from a directory, what's the worst that can happen? What important information might I lose?
105
votes
5 answers

Why is my host name wrong at the Terminal prompt when connected to a public WiFi network?

For three days straight, I have connected to the public WiFi network at my local library. Each day, I have seen a different prompt in Terminal. Here are some of the prompts I've seen: zp-pc:~ russell$ mary-pc:~ russell$ normob05:~ russell$ I have…
105
votes
8 answers

How to convert a HEIF/HEIC image to JPEG in macOS?

So, here’s the thing. I have a new iPhone and an old Mac. iOS 11 (still in beta as of today) and El Capitan (no more updates for this Mac). I use iCloud photo library in both devices. When I take a photo in the new format with my iPhone 7, is there…
104
votes
6 answers

Is there a command to install a dmg

I want to install a dmg file on a remote server. All I have is an ssh access. Since a DMG is a disk image, I tried to mount it, but mount does not seem to recognize its format. file says my dmg file is a VAX COFF executable.
philant
  • 2,353
104
votes
2 answers

Why doesn't Mac OS X source ~/.bashrc?

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 Bash itself) doesn't source ~/.bashrc file, either in…
103
votes
6 answers

reattach terminal tab to another window

Suppose you have a terminal with two tabs. You click, drag, and let go one of these tabs and it becomes an independent terminal window. After a while, you want to take this terminal window and reattach it as a tab to the previous window. How do you…
102
votes
1 answer

How to remove an environment variable on OSX using bash

I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess). What I did is add the variable DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.2/lib to my .bash_profile file, which…
Carlos G
  • 1,131
102
votes
4 answers

Do MacBooks have a true "Hibernate" option?

I've recently switched from Windows to a MacBook pro. In Windows, there are the following shutdown options: Standby - the machine goes into a "light sleep" from which it can awaken very quickly (like, in a few seconds), but plenty of energy is…
Pekka
  • 2,677
102
votes
1 answer

How to copy path of a file in Mac OS?

I am looking for a shortcut to copy the path of a file in Mac OS. I generally require it to copy paste in editor.
Ajay Sant
  • 3,251
102
votes
10 answers

How do I control Macbook volume when a DP display is connected?

When I plug my Mac into a DisplayPort monitor that has loudspeakers, the Mac's volume controls become disabled. Is Apple assuming that if I have external speakers I am so much better using their own volume control that I have to be forced to do…
jay613
  • 2,568
102
votes
5 answers

Single application not showing up in Spotlight

I have a strange issue where Matlab stubbornly refuses to appear in Spotlight search results. I'm not sure what information to provide besides the fact it clearly exists in Applications: It even appears in Launchpad just fine: I don't have…
houbysoft
  • 9,182