Show Menu
Cheatography

Linux Test 6 Cheat Sheet (DRAFT) by [deleted]

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Admini­strator

Remember to create own admin user!

Crontab

Minutes Past the Hour
Hour of the Day
Day of the Month
Month of the Year
Day of the Week
Command to be Executed

Crontab Options

Single Value
eg: 1
Single Month
eg: jan or mar
Single Day
eg: mon or sat
Set of Values
eg: 1,2,3,­4,5­,6,­7,8­,9,10
Range of Values
eg: 1-10 or jan-oct or mon-fri
Interval
eg: 0-50/10 equals 0,10,2­0,3­0,40,50

Random Commands

man command
find
fuser / lsof
exec
 

User Creation

Create User
adduser name of user
Create Group
groupadd name of group
Add User to Group
gpasswd -a name of user name of group

BashRC Edits

File to edit
/etc/b­ash.bashrc
Adding Alias
alias command to type=command to execute

Folder­/File Permis­sions

Set Group
chgrp group name folder­/file name
Set Owner
chown username folder­/file name
Set Access
chmod permis­sions folder­/file name

chmod Permis­sions

Read
4
Write
2
Execute
1