FANDOM


Entering Root Edit

$ifconfig

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)

#ifconfig

command not found

#pwd

/home/jhale

#exit


Try Again Edit

$su root (no bueno, same reason)

Commands
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)

#ifconfig

command not found

#exit

Try Yet Again Edit

$su - (this is good! XD)

password

#ifconfig

network stats would show here

#pwd

/root

#exit

Basic Commands Edit

Making Directories Edit

/
/home /root
/jhale
/stuff
/private /more

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

$pwd

/home/jhale (oh, ok)

$cd stuff

$pwd

/home/jhale/stuff

$mkdir private

$mkdir more

$cd more

$pwd

/home/jhale/stuff/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

INIT 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

IO:n:Default

(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]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.