Linux mod 5 Flashcards
A program that provides text only interface for Linux and other UNIX like OSs.
Presents each user with a prompt, executes user commands and supports a custom environment for each user.
Shell
What does the # symbol indicate in
[root@Linux ~]#
Root user
What does the $ or % indicate
[bob@localhost ~]$
Non-root user
What are the different shells available?
Bourne Shell (sh)
Tenex C Shell(tcsh)
C Shell (csh)
Bourne-Again Shell (bash)
Display on-line manual pages about command.
man
Syntax: man
Clears the current screen
clear
Print working directory, displays the current working directory.
pwd
Displays the UNIX OS variant.
uname
uname -a Prints all information
Prints or sets the system date and/or time.
date
date -s
Sets date to date and time provided.
Lists directory contents in a tree-like format.
tree
tree -c Turn colorization on
tree -f Append a “/“ for directories
Exit the current shell
exit
Lists contents of a directory
ls
ls -l Long-list - shows ownership, permission, and links.
ls -i Inode number in the first field
ls -s number of file system blocks
ls -a List all files including invisible files
What are text files are viewed using text viewer utilities?
Don’t change file contents but allow forward and backward navigation as well as search.
Pagers
Displays text files one screen at a time.
less Options: -b Backwards movement, one page at a time / Initiates a search for a string (word) q Exits from less SPACE BAR Advances one screen at a time ENTER Key Advances one line at a time
Works like the less command but with fewer options.
more
Automatically prints the first 10 lines of a file to standard output.
head
Syntax: head
Command automatically displays the last 10 lines
tail
Syntax: tail
Displays file(s) contents to the screen and can concatenate (combine) files.
cat
Syntax: cat
cat >
Change directory
cd
Syntax: cd //
cd
Static files of the boot loader; required to boot the system.
/boot
Essential command binaries (e.g., cp, mkdir, ls, less).
/bin
Essential system binaries. Commands intended for use by privileged users.
(e.g., init, fdisk, ifconfig, lsmod).
/sbin
Second major hierarchy. User system resources, i.e., user binaries, and associated documentation, libraries, and header files
/usr
Shared libraries.
/lib
Device files (block and character).
/dev
System administration and configuration files.
/etc
User home directories.
/home
Optional third-party software.
/opt
Processes used by system.
/proc
Root user’s home directory.
/root
Temporaru files used by the system
/tmp