100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

TESTOUT LINUX PRO PRACTICE QUESTIONS|2023/24 UPDATE|GRADED A+

Rating
-
Sold
-
Pages
36
Grade
A+
Uploaded on
30-08-2023
Written in
2023/2024

Use killall -h or killall --help to find the correct option A: -g According to the command line help, which switch can you use with the killall command to kill a process group instead of just a process? Use useradd -h or useradd --help Prevents the home directory from being created regardless of system settings What does the -M switch do with the useradd command? Use usermod -h or usermod --help Assigns a user to a new list of supplementary groups According to the command help, what does the -G switch do with the usermod command? - Type vi /etc/pref_shell to open vim and create the file -Press the a key to enter insert mode (or ctrl + insert keys) and type the required text -Press Esc key to get out of insert mode -:wq to save and exit You need to use the vim editor to create a script file to change and export the SHELL environmental variable as the C-shell. Complete the following tasks: -Open the vim editor with a new file named /etc/pref_shell -Add the following lines to the file: SHELL=/bin/csh export SHELL -Save and close the file -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 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 mount /dev/sdb2 /mnt/drive2 The /dev/sdb2 volume is mounted to an uncommon mount point directory: /root/newdrive. You need to remove the volume from the /root/newdrive mount point and remount it to the /mnt/drive2 directory. Your task in this lab is to: -Unmount /dev/sdb2 from /root/newdrive -Mount /dev/sdb2 to /mnt/drive2 Use: mount /dev/dvd /media/dvd ls /media/dvd to verify You need to install a new application from DVD, however, the DVD drive (/dev/dvd or /dev/sr0) is not mounted. Your task in this lab is to mount the DVD-ROM drive to the /media/dvd directory. 1.2G 2.8G 52% Use the df -h command to answer the following questions: (Type info exactly as it is shown on the screen) How much space is used on /dev/sda2? How much space is still available on /dev/sda2? What percentage of space is used on /dev/sda1? 100 K ./.config 40 K You are logged on as Will Adams (wadams), and your working directory is /home/wadams. Use the du command to answer the following questions: How big is the /home/wadams directory? What is the largest directory in/home/wadams? What is the size of the ./.config/ibus/bus directory? Use: pwd /home/wadams What is your current working directory? Use: ls -l / 12586 Mar 15 2009 You need to view detailed information for the hr directory in the root (/) directory and answer the following questions: What is the directory size? What is the modified date? Use: ls -a /hr .sanford What is the name of the hidden directory in /hr? Use: mkdir /home/wadams/wh or Go to the directory you want to create things in and use mkdir wh then use ls -l /home/wadams/wh to verify You are preparing to manage a new project code named White Horse. You need to prepare directories for White Horse documents. You are logged in as user wadams. Your task in this lab is to create the following directories inside the /home directory for user wadams: -Create a directory called wh directly inside /home/wadams -Create three following directories in /home/wadams/wh: -plan -research -implement

Show more Read less
Institution
A.3 TESTOUT PC PRO
Course
A.3 TESTOUT PC PRO











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
A.3 TESTOUT PC PRO
Course
A.3 TESTOUT PC PRO

Document information

Uploaded on
August 30, 2023
Number of pages
36
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

R257,44
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

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.
FREEMANSHARP Havard School
Follow You need to be logged in order to follow users or courses
Sold
140
Member since
2 year
Number of followers
70
Documents
7649
Last sold
3 weeks ago
FREEMANSHARP

In this page you will find all exams , flashcards , quizzes and package deals offered by seller Freemansharp

3,5

28 reviews

5
8
4
7
3
7
2
3
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions