Most Popular

1500 questions
176
votes
8 answers

What can I do when my SSH session is stuck?

Sometimes my ssh session in the terminal hangs. How can I exit the ssh session and reconnect?
Kit Sunde
  • 3,089
173
votes
1 answer

ZSH: .zprofile, .zshrc, .zlogin - What goes where?

Now that I've upgraded to Catalina and I am using the new ZSH shell, I've noticed that ~/.bash_profile has been replaced with ~/.zprofile and since installing iTerm2 shell integration, it added a ~/.zshrc file. Looking at the ZSH documentation on…
Allan
  • 101,432
173
votes
6 answers

Convert .mov to .mp4

I want to convert .mov to .mp4! I saved the video from iMovie but it is in .mov format! How do I convert it to .mp4? I'm using a MacBook and I want to share it to my phone, but my phone can't open .mov format video.
yuyu
  • 1,831
172
votes
14 answers

Cmd+Tab does not work on hidden or minimized windows

When I want to switch between windows using ⌘ Cmd + ⇥ Tab it does not work with hidden or minimized windows. I can see the icons of these windows in the application switcher but choosing them does nothing. How can I get this to work again?
urbaindepuce
  • 1,949
170
votes
3 answers

What is this qemu-system-aarch64 process and why is it using almost 3 GB of RAM on my M1 Mac

I am on my M1 Mac mini (Big Sur 11.3.1). I got a message that I am running out of RAM and should close some apps. I saw this process called qemu-system-aarch64 that takes up to 3GB of RAM. I don't know what it does and cannot stop it either. What is…
Redbeard
  • 1,823
170
votes
4 answers

How do I delete all Terminal mail?

I set up a cronjob a long time ago that now doesn't exist. Whenever I open up Terminal, it now says "You have mail". I have something like 100 messages that all say the same thing. How do I mass delete all of the messages?
daviesgeek
  • 38,901
  • 52
  • 159
  • 203
170
votes
11 answers

WindowServer high CPU on Yosemite

This is a follow up to So my Yosemite install is slow - what to do? Since installing Yosemite a week or so ago my machine is very sluggish. I am a web developer so I change windows/apps a lot. Changing apps makes my machine hang for 2 or more…
Jake N
  • 2,288
170
votes
5 answers

Task Switcher moves to non-primary display on Mavericks-Catalina

I'm running OS X on a computer with two displays that are not mirrored. One of them is configured as the primary display using the menu bar location in Displays System Preference, pre-Mavericks style. (Although both displays actually have the menu…
laalto
  • 2,033
  • 2
  • 14
  • 12
169
votes
10 answers

OS X computer name not matching what shows on terminal

My computer name in System Preferences > Sharing is set to "archos", but is showing as "iphone" on Terminal. It just started doing this after I loaded Xcode for doing iPhone development: Last login: Mon Nov 7 14:46:55 on ttys001 iphone:~ travis$…
169
votes
3 answers

What happens if you plug more than one charger in the new MacBook Pro (2016)?

Apple's controversial decision to convert all the ports on their 2016 MacBook Pro lineup to USB-C ports contributes to blur the difference between ports that supply power (such as a power adapters) and ports that can power external devices (such as…
MicroMachine
  • 3,884
168
votes
7 answers

How can I prevent an SSH session from hanging in OS X Terminal?

When I close my MacBook with an active SSH session in Terminal and then wake it up, the prompt goes unresponsive. In about five minutes it says Write failed: Broken pipe and terminates. This also happens when I don't type anything in the Terminal…
Dan
  • 4,998
168
votes
10 answers

How to simulate slow internet connections on the mac

What's a good software solution to slow down internet connections on the mac for testing and simulations? My primary need is when testing code in the iPhone / iOS simulator, so slowing down the connection for specific applications or processes would…
aneuryzm
  • 5,429
168
votes
6 answers

Is there a `lsblk` equivalent for macOS that lists all attached storage devices?

In Linux if I want to see all the devices currently connected to my computer in the command-line, I run: lsblk or blkid The goal here is to be able to obtain information about all storage devices based on its label or other uniquely identifying…
167
votes
4 answers

Using The Terminal Command to Shutdown, Restart and Sleep My Mac?

I'm getting more interested in using Terminal as an alternative way to address solutions on my Mac. I have seen this question entitled "Is there a better way to shutdown/restart OSX?". I would therefore like to know: How to shut down, restart and…
Simon
  • 7,451
166
votes
8 answers

How to get the chrome tabs to always show when in full screen mode?

I would really like to use Chrome on my new 2013 Macbook Air with tabs, but without the menu bar. So, I use full-screen mode, but it hides the tabs. Is what I want possible? And, if so, how can I get it to work that way?
bitcycle
  • 1,761