paint-brush
MacMan: Your Handbook to Transitioning From Windows to Mac as a Developer [Part 1]by@beardedowl1357
331 reads
331 reads

MacMan: Your Handbook to Transitioning From Windows to Mac as a Developer [Part 1]

by Sanchay JoshiSeptember 16th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Tips and tricks to transition from Windows to Mac.
featured image - MacMan: Your Handbook to Transitioning From Windows to Mac as a Developer [Part 1]
Sanchay Joshi HackerNoon profile picture

Hi. This article is intended for those who have been working with Windows for a long time and are now transitioning to Mac. This article leans towards a developer’s use case, but I believe that it will be helpful overall. Mac, as an OS, is the beautiful blend between Windows and Linux, and from a developer’s perspective, it gets things done (Only if it could game as well as it runs After Effects).

Checking Your CPU Architecture

It is surprisingly important to determine the CPU architecture. The simplest method to do so is to click the Apple icon on the top left and click on “About this Mac.”


  • If your processor is an intel processor, then whatever application you will be downloading will be suffixed with x64
  • If your processor is an Apple processor (M1 or M2), then the applications that you will be downloading will be suffixed with “arm.”

I am using a Mac with an intel processor. Some of the applications and commands which I suggest may not be available for the M1 or M2 Architecture.

The "Apple Icon" on top left and "About This Mac" button


The processor which I am using

Basics of Switching to Mac

Trackpad Commands

I personally use the keyboard more than the trackpad; however, there are a few things where the trackpad shines.


Keyboard Shortcuts

  • The ”Alt” key in Windows is ”Option” (⌥)

  • In most of the cases, the “Control” key is “Command” key (⌘)

  • Use ⌘ + Q to forcefully quit an application

  • Use ⌘ + Space to open Spotlight search. This is a super fast search that allows you to search for applications and files.

  • Task manager of Windows is called Activity Monitor.

  • Use ⌃ + ⌘ + Space to open emoji menu

  • Use ⌘ + Tab to cycle between applications and ⌘ + ` to toggle between multiple windows of the application.

    • For example, let us assume that we have three windows of Firefox opened, along with one window of Zoom and one window of Outlook
      • By pressing ⌘ + Tab, we will be cycling between applications
      • Using ⌘ + ` , we will be cycling between the windows of the current application
      • Using AltTab tool is a better option as it emulates the Windows style of switching between tabs. Check the Open Source Tools category.



Open Source Mac Tools


Using The Mac Terminal

Tools


Commands

Copying Text From Terminal’s Output

This is done by using “pbcopy” command. Example usage is defined as follows:

echo "This article is the best article for windows users to quickly start working on mac" | pbcopy


The text “echoed” (a humble brag) will now be copied to your clipboard. Try pasting it in a text editor.

Pasting Clipboard Content on Terminal

Similar to above, we can use “pbpaste” command to paste clipboard’s content to the terminal.

# wc is used for displaying the line, word and character count respectively
pbpaste | wc


Opening a file via a Terminal

If you are working in a directory where there is a certain file that needs to be opened (for example, you used a Python script to generate a CSV file and now want to see it in Excel), instead of manually navigating to the folder, you can use the “open” command in terminal.

# To check the latest modified file. 
# The latest modified file will be displayed at the "bottom" of the output
ls -ltr

# Opening the file
open <filename>


Closing Notes

The above has been mostly “new” for me from Windows to Mac. If I find any new things, I will probably publish part 2 of this article. Let me know if this helped and if you have any tips to enhance the experience further.