1/39
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
linux has super user account called
root
linux is
case sensitive, file ABC is not the same as file abc
when creating files avoid using
spaces
linux kernel is
Not an operating system, it is a small software that takes commands from users and passes them to system hardware
2 types of access
console
remote
command to remotely access linux machine
ssh 192.168.1.1
command to remote into linux machine with username
ssh -l <username> <ip-address>
get ip address
ip addr
command prompt order
username - hostname - prompt symbol
get prompt back
ctrl + c
get username
whoami
get hostname
hostname
there are 3 types of root on a linux system
root account → has access to all commands
/ → root directory
/root → root home directory
change password
passwd userid
linux file systems
ext3, ext4, xfs
go to a different directory
cd
directory where log files are located
/var
directory where commands are located
/sbin
directory that contains files used by bootloader
/boot
directory that contains root user home directory
/root
directory that contains configuration files
/etc
directory that contains system devices
/dev
directory that contains everyday user commands
/usr/bin
directory that contains system file commands
/usr/sbin
directory that contains optional add ons
/opt
directory that contains running processes used only in memory
/proc
directory that contains programming library files
/usr/lib
directory that contains temporary files
/tmp
directory that contains system logs
/var
switch directories
cd
find which directory you are currrently in
pwd
list the contents of a file
ls <filename>
c: drive (windows) is the same as what in linux
/
become root
su -
wipe the screen
clear
when doing ls… anything that starts with - is a
file
when doing ls… anything that starts with d is a
directory
go one directory back
cd ..
when doing ls… anything that starts with l is a
link
an absolute path always begins with
/