Technical professionals. Trusted advisors. Certified expertise.

HCS Blog

Problem-solving by Apple Certified Professionals

As Senior System Engineer at HCS, Keith wears many hats.  He is responsible for a myriad of duties at HCS.  From project management to taking out the trash, Keith is always willing to do the job at hand and never afraid to get his hands dirty.

Keith has the drive and ability to take a project full circle. He is obsessive when it comes to documentation and communication.  He is a self-starter with the ability to think fast on his feet.

Keith has over 20 years in the IT Industry specializing in Apple Technology.  He’s been a member of the HCS family since 2008.

Sep
09

How to change users desktop picture from Command Line in OS X El Capitan

sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '/Library/Desktop Pictures/Solid Colors/Solid Aqua Blue.png'" && killall Dock

0
  4624 Hits
Jul
17

How to add blank space to your dock

If you want to separate items in your dock with blank space, enter this command:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock

Continue reading
0
  4292 Hits
Jul
01

How to get current logged in user from the Command Line.

#Get current logged in user


userName=`ls -l /dev/console | awk '{ print $3 }'`

0
  4448 Hits
Jul
01

How to set the time zone and network time server from the Command Line.

# Time Zone Setup
systemsetup -settimezone America/New_York


# Set to use Network Time Server time.apple.com
systemsetup -setusingnetworktime on systemsetup -setnetworktimeserver time.apple.com

0
  4452 Hits
Jul
01

How to convert a signed mobile config profile to a plist

This command will convert a signed configuration profile to xml 1 and send the output to a file named test.plist

security cms -D -i  /Users/yourusername/Desktop/mySettings.mobileconfig > test.plist

0
  13778 Hits
Jun
22

Using the EOF (End of File) Command

There are time when you need to escape special characters in a bash script like dollar signs or backticks.  If you ever need to quote an entire section of text in a bash script without having to escape all special characters, use the cat command with EOF in single quotes.

When EOF is enclosed in single quotes, it ignores any special characters and will not interpret them in your script.  

The following command will print out the lines in between ‘EOF’ and EOF to the screen.


cat << 'EOF'

Lines with $signs are OK

Line with `backticks`

EOF


This is a handy command for your arsenal.  Enjoy.

0
  4516 Hits

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.