Intro to Linux
Urban Voice -- Instructor: Lenny Bailes
Week 8 Agenda
1. Hand back/review Quiz #2
2. Finish resolving classroom partition issues
3. Review of Linux command-line stuff from Chapter 8:
- Shell variables: Set, History commands
- Special Characters: ^C, ^\, ^D, ^Z
- Use of quote marks (see Jang, p. 267
The shell sends everything inside of the quote marks to the command on
the command-line.
The shell behaves differently with each of the three different types of quotes.
a) What happens with a string in single quotes ( ' nnnnnnnnn ')? ____________
____________________________________________________________
b) What happens with a string in standard (double) quotes (" nnnnnnn ")?
_______________________________________________
c) What happens with a string in backquotes (` nnnnnn`)?
_____________________________________________
Try executing the following statements from the command-line:
#echo Welcome $LOGNAME, the date is date
#echo 'Welcome $LOGNAME, the date is date'
#echo "Welcome $LOGNAME, the date is date"
#echo 'Welcome $LOGNAME, the date is `date`'
#echo "Welcome $LOGNAME, the date is `date`"
#echo `Welcome, $LOGNAME, the date is `date` `
- Alias, Unalias commands
Review of Chapter 7 Concepts
- Primary/Extended/Logical partitions
- Adding partitions
Last week we learned to use Linux fdisk to modify the partition structures of some of the
computers in the lab. We deleted and redefined the Linux swap partition, making it smaller
(1000MB instead of 9000). This operation allows room for us to create an additional FAT
partition that will be able to interoperate with Linux and Windows XP.
We used Linux fdisk to delete the old swap partition and recreate it with a smaller size
(See Week 7 Agenda).
a) Set your new swap partition type to Linux Swap Partition (Type 82).
(The commands to do this are ___, followed by ____.)
b) Write the changes to the partition table, then quit fdisk. (The commands to do this are
____ and ______ .)
c) [New concept] Switch on the swap partition. (The command to do this is _________)
d) Reboot the computer and verify that the new Swap Partition works.
When/if the computer reboots successfully, use Linux Fdisk to check the new hard
disk configuration and create a 2500MB VFAT partition, if free space is now
available.
(Be careful not to delete or overwrite other existing partitions on the drive)
a) Make the new partition a primary partition and set its type to FAT32.
(The commands to do this are ________ , _________, _________, __________b) Format the new FAT32 partition. (The command to do this is
__________________)
(Note, test to see whether you can format this partition as VFAT. If it doesn't
work, what do you think is the reason?
_______________________________.Try formatting the new partition as MSDOS.
c) Mount the new VFAT partition (configure a mount point).
(Write down the command you use to do this _____________________________.)
d) Copy or download the Boson Exam Setup Fileto the mounted FAT32 partition.
e) Reboot the computer under Windows XP; find and install the Boson Exam program.
- Linux file systems (See Jang, p.245-246(
tune2fs command
du and df commands
running fsck and e2fsck