Install Linux & Basic Commands - Ch1 Flashcards
List popular Linux distributions
Enterprise Linux:
- Red Hat Enterprise Linux (RHEL)
- Oracle Linux
- CentOS - Community Enterprise Oper Sys
- Scientific Linux
- Fedora
- Debian Linux: Comm pwrd, supports mult vendor hdwr
- Ubuntu Linux: Debian spinoff
- SUSE Linux: Commericial
- OpenSUSE Linux: Comm driven
The Linux command prompt consists of what?
username
Linux system name
Current directory
Dollar sign $: default shell sign indicating a regular user
Centos command prompt is slightly different and enclosed within square brackets
What is the basic syntax of the Linux command?
command;
option (switch);
argument (files & other data)
A Linux command option is often preceded by what?
A hyphen
ls
Lists files and directories
pwd
Print working directory : Displays curr location in dir tree
cd
Change dir
cd /
Switch to the root dir
cd -
Cmd switch to previous dir
cd ..
Move up to parent dir
tty
Cmd display terminal name you are currently running commands in
uptime
Show sys curr time, how log it has been up, no of users logged in, avg no of processes over last 1, 5, and 15 min
whoami
View user login name
logname
Login name; shows name of real user originally logged in to sys
id
Displays: user id (UID); user name; group id (GID); secondary group ids