The Linux keyboard shortcuts Ctrl W and Alt F4 (PC) or control W and option F4 (Mac) will perform the Close action. Depending on the application, Ctrl W / control W is usually used for closing tabs and Alt F4 / option F4 is usually used for closing windows. Close is a global Linux keyboard shortcut that is usually located in the File menu. This keyboard shortcut for Close is available in the Chrome OS / Chromium OS, Cinnamon, Gnome, KDE, LXDE, MATE, Unity (Ubuntu) and Xfce desktop environments. The same keyboard shortcut may also be available with other desktop environments that can be run on Linux.