General Flashcards
Do you know the basic differences between Red Hat and CentOS?
Centos is free but is community supported, while redhat isn’t free but has support (for troubleshooting) provided by paid vendors. Centos for individual personal use, redhat for corporate use.
Why would you prefer Linux over Windows or any other operating system?
Linux is open source,
secure, multitasking, light weight, provides more uptime, less vendor dependency.
Which RHEL versions are you familiar with?
RHEL 7, 8, 9
Which ticketing system are you familiar with?
Jira
What is the structure of Linux, or what are the core components of the Linux OS?
The structure of Linux, or the core components of the Linux OS, typically includes:
Kernel: The core of the operating system that interacts with the hardware and manages system resources.
Shell: The interface that allows users to interact with the operating system through command-line commands or scripts.
Filesystem: The hierarchy of directories and files that store data and programs. Libraries: Collections of precompiled functions and routines that applications can use.
Utilities: Various command-line and GUI tools for managing the system and performing tasks.
Processes: Running instances of programs or commands that perform tasks.
What is the difference between shell and Kernel?
shell is the interface between the user and the
kernel.
kernel is an interface between the shell and hardware.
Which commands do you use on a routine basis?
uname, ifconfig, lsblk, du, df, hostname, w, who,
uptime, top, ps, nmcli
How can we check the hostname?
hostname, hostnamectl
What is the command to check the OS release?
cat /etc/os-release, cat /etc/redhat-release
How can you find out the kernel version of a Linux system?
uname -r
What is the difference between “su” and “su -“?
su: switch users to a new user by adding a shell, while keeping the environment (home directory for example) of the PREVIOUS user.
su -: switch users to a new user by adding a shell, while maintaining the environment (home directory for example) of the NEW user.
Which command do we use to get the commands you executed recently?
history and up arrow
What are binaries, and where are they stored?
Binaries are executable files written in binary code.
They are stored in /bin for the regular user, and system binaries are stored in /sbin.
What is the purpose of the /boot and /etc directories?
/boot – booting files
/etc – configuration
files
What does the /proc file system contain, and what is the size of this file system?
virtual file system
with 0 byte size. contains the kernel related files. it does not take space from the disk.
What is the basic difference between the /bin and /sbin directories?
/bin stores user binaries
/sbin stores system binaries
Which file system contains system configuration files?
/etc
What is the path to the directory that contains environmental files?
/etc/skel
Do you know how to execute multiple commands in a terminal?
; semicolon to separate commands and execute them in one go. -exec with find
Where are system binaries kept?
/sbin
What does the /opt directory/file system contain?
contains the optional or third party tools
What information can we extract from the uptime command?
current time of the system, how long system is up, no. of users logged in, load average at 1, 5 and 15 minutes.
What is the command to list all logged-in users and the time the server has been up for?
w, who
w
command is more organized and gives more information
What types of different timings are kept in record by Linux for files and directories, and which command would exhibit that information?
stat <filename> gives the
access (last time file was opened)
modify (change contents)
change (change metadata)</filename>
What is the pwd command used for?
present working directory, helps navigatae where you are
in the system