Technical professionals. Trusted advisors. Certified expertise.

HCS Blog

Problem-solving by Apple Certified Professionals
Mar
06

Add sound to your Ping command

The command below will ping the ip address three times and for each response, your default OS X alert sound will play.  The -a flag in the command below means Audible.  And if not obvious, the -c means ping count.

ping -c3 -a 192.168.1.100

 

Continue reading
Mar
05

Create a new user from the Command Line - Yosemite and above.

If you're running OS X Yosemite and above, you can use the new "sysadminctl" command to easily create users from the command line.

sudo sysadminctl -addUser keith -password mypassword

Continue reading
Mar
05

Switch to root user in terminal and be in root users home

sudo -i   

This will give you root access and switch the home folder to the root user.  

Continue reading
Mar
06

Use brace expansion to copy a file without having to type in the file name twice.

In this example, the file named “file1.txt” with be copied to a file named “file1.txt.bak” without having to type in the second file name.  This is done using brace expansion.

 In Terminal, enter the command below:

Continue reading
Mar
06

Add Color to the ls command in Mac OS X

Open Terminal and type:

nano .bash_profile

At the bottom of your .bash_profile, add these lines and save the file.

NOTE:  If you use a Dark terminal theme, use this:

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced


NOTE:  If you use a Light terminal theme, use this:

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad


Once your .bash_profile is saved, enter the command below:


ls -alh

The output should now be in different colors.

Mar
06

Changing the default Umask on OS X Yosemite 10.10.3 or later

Enter the following command in Terminal:

sudo launchctl config user umask 000


Get info on other versions of OS X here:  https://support.apple.com/en-us/HT201684

Locations


New York

Connecticut
Florida
Louisiana
Chicago

Corporate Headquarters
New York

80 Orville Drive Suite 100
Bohemia, NY 11716
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Connecticut

65 High Ridge Road #510
Stamford, CT 06905
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Florida

3321 SW 194th Terrace
Miramar, FL 33029
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Louisiana

218 Barksdale Drive
Broussard LA 70518
This email address is being protected from spambots. You need JavaScript enabled to view it.

Chicago

4 Knollwood Place
Joliet, IL 60433
This email address is being protected from spambots. You need JavaScript enabled to view it.

London

10 Grosvenor Court
Rayners Road
London SW15 2AX UK

Stay Connected

© Copyright 2023, HCS Technology Group. All Rights Reserved.