Linux Class Flashcards
man
Displays Manual Page
cd
Change directory
pwd
present working directory
obtain system information command including kernal version
uname -a
What is the basic GUI environment called?
X Window referred as ‘X’
What is the program that controls the appearance of windows in the X Window System?
Windows Manager, ex. Kwin, Metacity, XFWM
A combination of Window Manger and a consistent interface that provides the overall desktop experience?
Desktop Environment, ex. XFCE, GNOME, KDE
The default manager for XFCE is XFWM/
search for patterns within a file
grep
Piped commands - output of command into file
|
>
Redirects out put of command into file
Appends file with the output of a command
> >
allows you to run a single command with your permissions
sudo
su
changes user in shell on the fly (without logging off and back on.
view directory listing
ls
formatted listing with hidden files
ls -al
create a directory file
mkdir
delete file
rm file
delete file
rm file
delete directory and files
rm -r dir
force remove file
rm -f file
force remove directory dir
rm -rf dir
create or update file
touch file
places standard input into file
cat > file
output the first 10 lines of a file
head file
output the last 10 lines of the file
tail file
output the contents of file as it grows, starting with the last 10 lines
tail -f file
display all running processes
ps
kill processes id pid
kill pid
change the permissions of file to octal, which can be found separately for user, group.
chmod {octal} file
read, write, execute for all chmod setting
chmod 777
rwx for owner, rx for group and world
chmod 755
connect to host as user using SSH
ssh user@host
connects to host on port as a user using SSH
ssh -p port user@host
search pattern in files
grep {pattern} {files}
search recursively for pattern in dir
grep -r {pattern} {files,dir}
shows the current date and time
date
shows this month’s calendar
cal
who you are logged in as
whoami
display information about user
finger {user}
The root directory
/
Executable programs needed when running in minimal troubleshooting mode
Common commands like ls, cd,
/bin
File and directories needed to boot the Linex Kernel. including the kernel images pointed to by LILO (the LInux LOader) or GRUB.
/boot
Device files that are used for accessing physical hardware. Files that represent devices on the system. Device nodes
/dev
Contains configuration files that are used by programs and services
/etc
used for local user home directories. Each user directory can be extended by the respective user and will contain their personal files as well as user-specific configuration files (X preferences)
/home
shared libraries that are used by programs
32 bit software libraries
/lib
Directories used for mounting devices in the file system tree. Provides temporary mount points for external, remote, and removable file systems.
This is the legacy directory for manually mounting volumes.
/mnt
Used for optional packages that may be installed on the system. Like Google Chrome
/opt
the home directory for the root user
/root
Executable programs for systems administration commands. Cannot be used by regular users. commands like fdisk and ifconfig
/sbin
Directory that may be used for data used by services like HTTP, FTP or NFS
/srv
Temporary files that may be deleted without any warning
/tmp
Subdirectories for program files.
Contains local software, libraries, games, etc
/usr
Bourne Again shell
Bash
Login shell
user @ hostname : ~ $
read and sources /etc/profile
ssh sessions (remote login)
user @ hostname : ~ $
logging in to the system at prompt
su - to root
Non login shell
X terminal
reads and sources .bashrc (user settings for non log in shell)
Prompt: Bash- $
Where are Global Bash login shell settings stored
/etc/profile
Where is Bash settings and user customization for login shells stored?
~/ .bash_profile
Where are User Bash non-login settings and can use to make all shells act like login shells
~/ .bashrc
read contents
cat
prompt = $
normal user
prompt = #
root user
help pages and most detail is info page
man
–help
info
long listing with ’human readable’ sizes
ls -lh