Entering Root Edit


Command Definitions
su = substitute user
pwd = print working directory
$rm - remove

command not found

$su (no bueno, won't allow root file use)

password (type your password)


command not found




Try Again Edit

$su root (no bueno, same reason)

pwd = parent working directory
cd = change directory
cp = copy file
mv = move file
mkdir = make directory
rmdir = remove directory
Touch = create empty file
Echo > = create empty file
CAT file = displays content of
ls = list files
ls -l = long format
ls -a = lists all files in a dir.
chmod = changes permissions

password (type pass)


command not found


Try Yet Again Edit

$su - (this is good! XD)



network stats would show here




Basic Commands Edit

Making Directories Edit

/home /root
/private /more

$mkdir stuff (wait, but where was i?)


/home/jhale (oh, ok)

$cd stuff



$mkdir private

$mkdir more

$cd more



$cd / (this is the top of the list)

Removing Directories Edit

How to Go Home
$cd ../../.. ~~~~
$cd /home/jhale
$cd $HOME (caps)
$cd (space-enter)

$rmdir stuff/more (or?)

$rmdir /home/jhale/stuff/more

Making Files Edit

$touch stuff/more/mine (creates if there is no existing file, or updates time stamp if it is a file)

$echo > stuff/more/mine (creates if non-existant)

$echo hi> stuff/more/mine (overwrites if existing)

$echo hello>> stuff/more/mine (appends if existing)

Operating System Levels Edit


0 - Shutdown
1 - Single User
3 Command line, Multi-network
4 - User Defined
5 - GUI, Multi-Network
6 - Reboot

Init is your feature that determines the run level.

/etc/inittab Edit


(n representing what run level you want.)

Review Edit

  • The 7 run levels are need-to-know!
  • 0, 1, 3, 5, and 6 are important to remember.
  • INIT 5 will take you to the GUI.

Homework Edit

[Homework Week 1]