Friday, December 21, 2018

[MAC] - How to use touchID on terminal

Add the instruction "auth sufficient pam_tid.so" on /etc/pam.d/sudo

Open terminal and write:
sudo vim /etc/pam.d/sudo
Now, add this line on bottom of file. (press i to insert and navigate with arrow down on your keyboard to the last line)
auth sufficient pam_tid.so
Save the file with command
esc + :wq!
Done, now you don't need any more add password on your terminal for sudo instructions.

Thursday, January 11, 2018

[MAC] - Format USB Stick / sdcard from terminal

Connect your USB Stick or SDCard on your mac.

Open terminal and write:
diskutil list
With this command you have a list of all disks connected on your computer. Normally the external disk (USB Stick, SDCard, External drive, ...) is up to 2 (ex. disk2, disk3, disk4, ...)

DON'T ERASE disk0 or disk1 because it's OS disk.

Erase the selected disk with this command
diskutil eraseDisk JHFS+ NAME-OF-DRIVE disk2
On last command replace NAME-OF-DRIVE to your new drive name and disk2 to your disk ID listed on first command.