TestOut Linux Pro practice questions Solved 100%
Correct | Verified Solutions
-Type in vi /etc/pref_shell to enter document
-change csh to tcsh
-:wq to save and exit - ✔✔You have just added a custom script to change and export
the SHELL environmental variable as the C-shell. However, you decide to change from
the C-shell to tsch.
Your task in this lab is to:
-Open /etc/pref_shell in vim
-Modify the environmental variable line SHELL=/bin/csh to read SHELL=/bin/tcsh
-Save changes
-Use the set command to view a list of variables or use echo $variableName to show
each one
/root
en_US.UTF-8
/bin/bash
linux - ✔✔View the currently set environment variables to find the values below
HOME
LANG
SHELL
,TERM
use cat /root/.bash_profile or vi /root/.bash_profile to view contents
PATH - ✔✔View the contents of the /root/.bash_profile file. What is the last word in
the file?
Use cat or vi to view file contents for /etc/shells
/bin/ksh - ✔✔The /etc/shells file contains a list of shells that are available on the
current system. View the contents of the file and answer the following question.
Of the shells listed below, which are not available on the system?
/bin/sh
/bin/bash
/bin/ksh
/sbin/nologin
Use fdisk -l to display info
-Id swap volume by looking for 83 Linux Swap at the end of an entry line
1st
5th
9668
473632
,1st
1st - ✔✔Use fdisk -l to answer the following questions about the partition table.
Which physical disk is the swap area on?
Which disk partition is the swap area on?
What is the beginning cylinder for the swap area?
What is the allocated size of the swap area in blocks?
Which physical disk is the boot disk on?
Which disk partition is the boot disk on?
Use:
mkfs -t ext3 /dev/sdb1 - ✔✔You've installed a new hard drive and created a partition
on the drive. Now you need to format the partition before you can save data on the new
hard drive.
Your task in this lab is to format the /dev/sdb1 partition with the ext3 file system.
Use:
mkfs -t ext4 /dev/sdc1
mkfs -t ext4 /dev/sdc2 - ✔✔You've installed a 3rd hard drive and created 2 partitions
on the drive. Now you need to format both partitions.
, You task in this lab is to format the partitions with the ext4 file system.
Use:
mkswap /dev/sdb2
swapon /dev/sdb2 - ✔✔You recently upgraded your computer and added an entra
512 MB of RAM. Consequently, you want to increase you swap space by adding a new
swap area. The second hard disk has an unused partiton (/dev/sbd2) that you want to
format for the swap area.
Your task in this lab is to:
-Create a swap partiton on /dev/sdb2
-Activate the swap partition
Use:
mkdir /mnt/disk
mount -t ext3 /dev/sdb1 /mnt/disk - ✔✔You recently installed and formatted a new
hard drive in your system. It's device file name is /dev/sdb1. Now you want to mount
the volume.
Your task in this lab is to:
-Create the /mnt/disk directory
-Mount /dev/sdb1 to the /mnt/disk directory with the ext3 file system.
Use:
umount /root/newdrive
Correct | Verified Solutions
-Type in vi /etc/pref_shell to enter document
-change csh to tcsh
-:wq to save and exit - ✔✔You have just added a custom script to change and export
the SHELL environmental variable as the C-shell. However, you decide to change from
the C-shell to tsch.
Your task in this lab is to:
-Open /etc/pref_shell in vim
-Modify the environmental variable line SHELL=/bin/csh to read SHELL=/bin/tcsh
-Save changes
-Use the set command to view a list of variables or use echo $variableName to show
each one
/root
en_US.UTF-8
/bin/bash
linux - ✔✔View the currently set environment variables to find the values below
HOME
LANG
SHELL
,TERM
use cat /root/.bash_profile or vi /root/.bash_profile to view contents
PATH - ✔✔View the contents of the /root/.bash_profile file. What is the last word in
the file?
Use cat or vi to view file contents for /etc/shells
/bin/ksh - ✔✔The /etc/shells file contains a list of shells that are available on the
current system. View the contents of the file and answer the following question.
Of the shells listed below, which are not available on the system?
/bin/sh
/bin/bash
/bin/ksh
/sbin/nologin
Use fdisk -l to display info
-Id swap volume by looking for 83 Linux Swap at the end of an entry line
1st
5th
9668
473632
,1st
1st - ✔✔Use fdisk -l to answer the following questions about the partition table.
Which physical disk is the swap area on?
Which disk partition is the swap area on?
What is the beginning cylinder for the swap area?
What is the allocated size of the swap area in blocks?
Which physical disk is the boot disk on?
Which disk partition is the boot disk on?
Use:
mkfs -t ext3 /dev/sdb1 - ✔✔You've installed a new hard drive and created a partition
on the drive. Now you need to format the partition before you can save data on the new
hard drive.
Your task in this lab is to format the /dev/sdb1 partition with the ext3 file system.
Use:
mkfs -t ext4 /dev/sdc1
mkfs -t ext4 /dev/sdc2 - ✔✔You've installed a 3rd hard drive and created 2 partitions
on the drive. Now you need to format both partitions.
, You task in this lab is to format the partitions with the ext4 file system.
Use:
mkswap /dev/sdb2
swapon /dev/sdb2 - ✔✔You recently upgraded your computer and added an entra
512 MB of RAM. Consequently, you want to increase you swap space by adding a new
swap area. The second hard disk has an unused partiton (/dev/sbd2) that you want to
format for the swap area.
Your task in this lab is to:
-Create a swap partiton on /dev/sdb2
-Activate the swap partition
Use:
mkdir /mnt/disk
mount -t ext3 /dev/sdb1 /mnt/disk - ✔✔You recently installed and formatted a new
hard drive in your system. It's device file name is /dev/sdb1. Now you want to mount
the volume.
Your task in this lab is to:
-Create the /mnt/disk directory
-Mount /dev/sdb1 to the /mnt/disk directory with the ext3 file system.
Use:
umount /root/newdrive