• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 38 pages
Exam (elaborations)

TestOut Linux Pro practice questions Solved 100% Correct | Verified Solutions

Document preview thumbnail
Preview 4 out of 38 pages

TestOut Linux Pro practice questions Solved 100% Correct | Verified Solutions

Content preview

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

Document information

Uploaded on
January 13, 2025
Number of pages
38
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
QUINTER
3.6
(73)
Sold
426
Followers
105
Items
40134
Last sold
2 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions