Linux Command Line and Shell Scripting, Exams of Social Sciences

An overview of various linux commands and shell scripting concepts. It covers topics such as file management, system administration, networking, and scripting. The document aims to help users understand the basic functionality and usage of common linux commands, as well as the principles of shell scripting. It includes information on command syntax, options, and examples, as well as explanations of key linux features and utilities. The content is suitable for both beginner and intermediate linux users, and could be used as a reference guide or learning resource for those interested in expanding their knowledge of the linux operating system and its command-line interface.

Typology: Exams

2023/2024

Available from 09/21/2024

ROCKY-B
ROCKY-B 🇰🇪

4.4

(16)

40K documents

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LINUX SUSE SECTION 1, LINUX SUSE SECTION 2,
LINUX SUSE SECTION 3
Which echo backslash sequence creates a trailing new line in a shell script? - Answers
-\c
The ____ command can be used to obtain the full path of a specified command. -
Answers -which
In SUSE Linux, you can find ICONS in two areas on the Desktop. Desktop Icons and
Main Menu Icons - Answers -False
Which one of the following commands can be used to create a symbolic link? - Answers
-ln -s
Which manual (man) page section number is used for games? - Answers -6
The Slow Keys feature configures the keyboard so that the user must hold a key down
for a configured period of time before the keystroke is sent, thus preventing accidental
keystrokes from being sent. - Answers -True
The TC shell is the standard Linux shell with many advanced features - Answers -False
Normally, redirecting is destructive on existing files, which item will append to existing
files? - Answers ->>
To view only the last ten lines of a file, you would use the ______ command. - Answers
-Tail
The ___feature sounds an audible alert whenever Caps Lock is on. - Answers -
ToggleKeys
Which of the following is not an item that you will find on the panel at the bottom of the
GNOME desktop? - Answers -Control Center
You can use the ___ command to move multiple files from directory to another at once.
- Answers -mv
Which of the following tools can be used to convert the content of the standard display
terminal into impluses that are sent to a series of pins? - Answers -Braille display
_____ are used to simulate multiple terminals connected to the serial interface in a linux
system. - Answers -Virtual terminals
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Linux Command Line and Shell Scripting and more Exams Social Sciences in PDF only on Docsity!

LINUX SUSE SECTION 1, LINUX SUSE SECTION 2,

LINUX SUSE SECTION 3

Which echo backslash sequence creates a trailing new line in a shell script? - Answers -\c The ____ command can be used to obtain the full path of a specified command. - Answers -which In SUSE Linux, you can find ICONS in two areas on the Desktop. Desktop Icons and Main Menu Icons - Answers -False Which one of the following commands can be used to create a symbolic link? - Answers -ln -s Which manual (man) page section number is used for games? - Answers - The Slow Keys feature configures the keyboard so that the user must hold a key down for a configured period of time before the keystroke is sent, thus preventing accidental keystrokes from being sent. - Answers -True The TC shell is the standard Linux shell with many advanced features - Answers -False Normally, redirecting is destructive on existing files, which item will append to existing files? - Answers ->> To view only the last ten lines of a file, you would use the ______ command. - Answers -Tail The ___feature sounds an audible alert whenever Caps Lock is on. - Answers - ToggleKeys Which of the following is not an item that you will find on the panel at the bottom of the GNOME desktop? - Answers -Control Center You can use the ___ command to move multiple files from directory to another at once.

  • Answers -mv Which of the following tools can be used to convert the content of the standard display terminal into impluses that are sent to a series of pins? - Answers -Braille display _____ are used to simulate multiple terminals connected to the serial interface in a linux system. - Answers -Virtual terminals

The ____ command prints the number of newlines, words, and bytes in files. - Answers -wc Which of the following shells has rich scripting capabilities? - Answers -Korn Which text tool can be used to replace tab characters with space characters? - Answers -split Which one of the following uses 'proper' command syntax? - Answers -Command | Command Which of the following is not a valid environment variable? - Answers -GREP Which option of the ls command is used to display hidden files? - Answers --a Which command below is a filter command that reads the standard input and writes it to both the standard output and a specified file? - Answers -tee A(n) ___ statement allows you to use conditions that can be evaluated in many different ways. - Answers -case Which command will determine the type of a file by examining its contents? - Answers - file Which file is read by all login shells? - Answers -/etc/profile The _____Icon minimizes all open windows or shows them again on the desktop. - Answers -workspaces How can you switch to a graphical virtual terminal in SUSE Linux? - Answers - Ctrl+Alt+F If no directory name is included as a parameter with the ls command, the contents of the current directory are listed. - Answers -True What is the name of the GNOME File Manager? - Answers -Nautilus The ___ environment variable overrides all other LC environment variables. - Answers - LC_ALL Which command would we type to view the contents of the file "cert" in our present directory one page at a time? - Answers -less cert The od command with the ____ option can be used to dump a file to the standard output in hexadecimal format. - Answers --x

Which command would we type to view the contents of the file "cert" in our present directory one page at a time? - Answers -less cert The ____feature enables users to lock modifier keys such as Ctrl and Shift. - Answers - StickyKeys A(n) ____ is used to find out if a certain condition is true or false. - Answers -test command ____ is an accessibilty tool that can be used as a screen reader and magnifier? - Answers -Orca If the LC_ALL environment variable is defined, the value for specific LC variables is not checked. - Answers -True Which accessibility tool can be used as a screen reader and magnifier? - Answers - Orca Which of the following commands would list all lines that contain the word "super" at the end of the line in the /etc/hosts file? - Answers -grep 'super$" /etc/hosts What Default Runlevel is selected by default on the Installation Settings page during a SUSE Linux installation if a graphical environment is installed? - Answers - YaST allows you to select ____ of software based on function. - Answers -Patterns ____ saves a dump of the kernel in the event of a system crash. - Answers -Booting What block group component contains a valid bit, which is set to 0 when the file system is mounted and set to 1 by unmount? - Answers -SuperBlock The length of the path to a file cannot exceed ____ characters, including slashes. - Answers - What is the structure of the default host name suggested by YaST? - Answers -host- xxxx ____ is used to guarantee a trust relationship among all network services that communicate with each other. - Answers -Certification Authority Which command is used to create a symbolic link? - Answers -ln -s The hierarchical file system tree used in Linux begins at the ____ directory - Answers -/

Which device file refers to the second partition on the third SCSI hard disk in SUSE Linux - Answers -/dev/sdc When configuring a network card that was not automatically detected, the Configuration Name field represents ____. - Answers -the interface's device number A(n) ____________________ path to a file starts from the root of the entire file system tree. - Answers -absolute Which file is used to the list of partitions and file systems that are mounted at boot time?

  • Answers -/etc/fstab Which of the following statements is not true regarding file systems? - Answers -The Linux kernel uses the VFS to allow processes to access different file systems on the same computer seamlessly To remove a mounted file system, use the ____________________ command. - Answers -umount Which directory under the /usr/ directory includes source files of all programs and the kernel? - Answers -/usr/src/ The ____ directory may be imported from a remote computer - Answers -/boot/ Which of the following is an absolute pathname? - Answers -/ In most YaST installation dialogs, the left panel displays an overview of the installation status and the right panel displays the current installation step. - Answers -True Which directory in the FHS stores programs that can only be executed by the root user?
  • Answers -/sbin By default, YaST selects the time zone to be GMT. - Answers -False RAID level ____ is known as hard disk striping. - Answers - Which of the following statements are true regarding the LVM? - Answers -Logical volumes are created from the available space within a volume group that is comprised of one or more physical volumes The /var/ directory contains many of the Linux program files - Answers -False If you select the Clone This System for Autoyast option at the end of the installation process, what file will contain the installation settings? - Answers -/root/autoinst.xml

A primary partition consists of a continuous range of cylinders assigned to a particular file system. - Answers -True The FHS tree can stretch over several partitions, but they must all be located on the same computer. - Answers -False Which directory under the /usr/ directory includes source files of all programs and the kernel? - Answers -/usr/src/ Which of the following options are available when you boot your computer from a SUSE Linux installation DVD? (Choose all that apply.) - Answers -Boot from Hard disk Rescue System Check Installation Media Firmware Test Hardware RAID is implemented directly by the SUSE Linux operating system. - Answers -False The secondary slave IDE hard disk is typically given the Linux name ____. - Answers -/dev/sdd What can you select during the software selection phase of a SUSE Linux installation to determine whether there are any prerequisite software packages for the software that you have selected? - Answers -Dependencies > Check If the hardware clock is set to ____________________, the system time is set according to your time zone and is automatically to daylight saving time. - Answers - Universal Time Coordinated (UTC) Which YaST groups include modules for managing disk partitions? - Answers -System In ncurses YaST, you press the ___to move from one box to another or to the text buttons. - Answers -Tab Key Which is the default setting for managing package dependencies in SLES 11? - Answers -Resolve package dependencies automatically (Dependencies > Autocheck) When testing a configuration, newer tests produce a black screen which makes it somewhat difficult to diagnose whether X11 is working properly. To use the older behavior, use the ___ option. - Answers -retro Which of the following are desktop environments that can be used in SUSE Linux? (Choose all that apply.) - Answers -GNOME KDE

QT is YaST' text mode. - Answers -False The minimum password length allowed by Blowfish is ____ characters - Answers - What is the UID for the root user? - Answers - The ____ filter lists groups created on the local server to provide permissions for members assigned to the group. - Answers -system groups To disable the warning issued to users a number of days before password expiration, enter ____________________ in the Days Before Password Expiration to Issue Warning field. - Answers -- What are the two X servers that are available for Linux systems? (Choose two answers.) - Answers -XFree XOrg You wish to install another software package using YaST from your SLES installation media. How can you verify that your system has the appropriate prerequisite packages?

  • Answers -View the Description tab within YaST. A(n) ____ is a background process that makes your installed set of fonts available to XFree86 and other machines running X. - Answers -font server In ncurses YaST, you select highlighted menu items by pressing the ________. - Answers -Tab Key What UID is used by the root user account? - Answers - Which of the following is a valid GID for a normal group? - Answers - What command may be used to start a second X server on tty8 - Answers -startx -- : VNC consists of two components. What are they? (Choose two answers.) - Answers -a VNC server component a VNC client program What file stores the default UID and GID ranges used YaST when creating normal users and groups? - Answers -/etc/login.defs All users who intend to create web pages can be placed in the group ____________________. - Answers -webedit ____ is a command line tool that guides you through the different aspects of the X configuration. - Answers -xorgconfig

The ____ command is used to fine tune the X server's video modes - Answers -xvidtune Which YaST group includes modules for configuring keyboard settings? - Answers - Hardware What keys can you use in the menu-based (ncurses) YaST interface to navigate between selections? (Choose two answers.) - Answers -Tab Shift+TAB What file is modified when you add a new group using YaST? - Answers -/etc/group Which of the following configuration utilities may be used to configure your XOrg server settings using a text-based interface? - Answers -xorgconfig A (n)____ ia a local or remote directory containing packages and additional information about these packages. - Answers -repository X Windows provides a GUI for computer networks for both client and server machines. - Answers -True Which protocol is used to remotely access the whole desktop of another computer? - Answers -Virtual Network Computing (VNC) The YaST software management module serves as the default software management interface for SUSE Linux Enterprise Server 11. - Answers -True What is the lowest GID used by normal groups? - Answers - Which of the following commands can be used to start the X server, window manager, and desktop environment from a command-line interface? - Answers -startx Which command could you execute at a command prompt to start a particular management module? - Answers -yast module_name The ____ command is used to control whether or not the display manager is loaded when the system boots - Answers -chkconfig The Linux operating system has the ability to handle several users at the same time to allow these users to perform several tasks on the same computer simultaneously. - Answers -True The highest permissible GID value is ____. - Answers - Which of the following is a disadvantage of installing a GUI? - Answers -Stability