File Permission Modes

7 5 5 user group world r+w+x r+x r+x 4+2+1 4+0+1 4+0+1 = 755 The permission mode is computed by adding up the following values for the user, the file group, and for everyone else. The diagram shows how. Read 4 – Allowed to read files Write 2 – Allowed to write/modify files eXecute 1 […]

Format USB drive for Mac and Windows using El Capitan

Insert the USB drive and open up Disk Utility. Click on the actual drive name, not the partition/s. Click Erase. Select whatever you want the name to be in the name field. Select MS-DOS (FAT) or ExFAT depending on the Win file system you want. Select Master Boot Record for the scheme. Click Erase. Once […]

Copying multiple specific files from one folder to another

There are several ways you could achieve this. The easiest I have seen is to use the following. cp /home/usr/dir/{file1,file2,file3,file4} /home/usr/destination/ cp /home/usr/dir/{file1,file2,file3,file4} /home/usr/destination/ The syntax uses the cp command followed by the path to the directory the desired files are located in with all the files you wish to copy wrapped in brackets and […]

How to locate your machine name PC or Mac

Follow the instructions below to locate your device name based on platform. Windows XP: Right-Click My Computer and Select Properties Click the Computer Name tab. Your Computer Name is listed under Full Computer Name. Windows Vista: Open System by clicking the Start button. Click on Control Panel > System and Maintenance, and then clicking System. […]

Simple MySQL Commands Cheat sheet

Commands Access monitor: mysql -u [username] -p; (will prompt for password) Show all databases: show databases; Access database: mysql -u [username] -p [database] (will prompt for password) Create new database: create database [database]; Select database: use [database]; Show all tables: show tables; Show table structure: describe [table]; Create new table with columns: CREATE TABLE [table] […]