Mac OS X Terminal Command to Find User Name & Primary Group

Getting-Started with Terminal Commands on Mac Hello Mac User! The Tip Shows You How-to Find Your’s User Name and Primary Group on Mac OS X Terminal/Console. The Commands are Intended for Execution on the Bash Shell but Most should Works also for the Bourne, C, TC and Korn Shells… How-to Quick-Start with Command Line on Mac: Mac Console Quick-Start Getting-Started with Terminal on Mac. To Find Your’s User Name whoami To Find Your’s User Primary Group id -g -n $(whoami) And for Another User: id -g -n [userName]

Continue Reading

Mac How-to Set-Change Ownership on Files and Directories by Command-Line

Mac OS X Setting Ownerships for File/Directory Hello Mac User! This is Tutorial Shows You Step-by-step How-to Setup or Change the Ownership over Files and Directories on Mac OS X BSD/Unix. The Ownership Decide How is the Owner of Files and Directories on the Mac OS X File System. To Set the Ownership Over Files and Directories is the First Step in Setting Up Permissions and so Establish a Control and Security over the System. To Follow the Tutorial You will Need to have a Little Practice to Work on the Mac Console Terminal Command Line. To Open a Terminal …

Continue Reading

Mac How-to Set-Change Permissions on Files and Directories by Command-Line

Setting Permissions on Mac OS X Hello Mac User! This is Tutorial Shows You Step-by-step How-to Setup or Change the Permissions over Files and Directories on Mac OS X BSD/Unix. To Follow the Tutorial You will Need to have a Little Practice to Work on the Mac Console Terminal Command Line. Included in the Article Links to Guides on Getting-Started with Command Line on Mac and to Setting Ownership over Mac File System. To Open a Terminal Shell emulator window Launch Finder: Select Applications: Double-Click on Utilities: Double-Click over Terminal: Switch to the Bash Shell (Press “Enter” to Execute Commands) …

Continue Reading

How-to Switch Java Version on Mac OS X 10.11 El Capitan Easy Guide

Mac OS X Switching Java Version on Shell The Unix Tutorial Show Step-by-Step How-to Easy Switching on Terminal Bash Shell a Java Multi-Version Installation for Mac OS X 10.11 El Capitan Unix/BSD. The Tutorial Include also Links on How-to Download and Install the Oracle Official Java Development Kit 7/8 for Mac OS X. Open a Command Line Terminal Window (Press “Enter” to Execute Commands) Edit the Bash Shell Config Environment nano $HOME/.bashrc Copy & Paste inside this is Function: alias java_ls=’/usr/libexec/java_home -V 2>&1 | grep -E “\d.\d.\d[,_]” | cut -d , -f 1 | colrm 1 4 | grep -v …

Continue Reading

How-to Find/Search for File/Directory/Image/Path on Mac OS X 10.11 El Capitan Shell

Mac OS X locate Command Quick-Start This is short Mac Tutorial Get You Started on Mac OS X El Capitan 10.11 with a Very Useful Shell Utility: the locate Command. Almost all we are working on Mac before or after we need desperately to Find something from the Shell. The Easiest and Fastest Way to Find System’s Entities in Unix-like Platforms is Matched Using the “locate” Shell Command. Open a Command Line Terminal Window Applications > Utilities > Terminal (Press “Enter” to Execute Commands) Make a Command Alias to Update the locate Database nano $HOME/.profile Append: alias updatedb=”sudo /usr/libexec/locate.updatedb” Ctrl+x …

Continue Reading