Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCI 330 MIDTERM QUESTIONS WITH 100% CORRECT ANSWERS

Rating
-
Sold
-
Pages
42
Grade
A+
Uploaded on
27-10-2025
Written in
2025/2026

CSCI 330 MIDTERM QUESTIONS WITH 100% CORRECT ANSWERS

Institution
CSCI 330
Course
CSCI 330

Content preview

PS1 is evaluated each time the shell prints the prompt, so you can have it
show environment variables, and/or use the following
\w current work directory
\h hostname
\u username
\! history event number
\d date
\t time
\a ring the "system bell"
Example:

,% PS1="\u@\h\!: "
z123456@turing22:


Give this one a try later!


bash shell prompt example




Number of arguments (short for argument
count)


Give this one a try later!


What is argc?




platform type, i386, x86_64, ppc


Give this one a try later!


hosttype




Formally, regular expressions consist of:
• atoms
• operators
An atom indicates which text is to be matched and where it is to be found.
An operator is used to combine regular expression atoms.


Give this one a try later!

, Regular expressions




absolute path to your system mailbox


Give this one a try later!


mail




The alias command aAllows you to assign an alias, to command(s). An
alias is another name for something, and when you type it as a command,
it will run the command it is an alias for.
To check current aliases:
% alias
To set alias:
% alias ll="ls -al"
To remove alias:
% unalias ll


Give this one a try later!


shell aliases




separates alternative regular expressions


Give this one a try later!

, Meta characters | or \|




Each command in history has a sequential event number
to view the history buffer:
history [c] [count]
• If no options are supplied, list all history
• c clears history
Size of history (in lines) can be set via shell variables:
HISTSIZE=500
HISTFILESIZE=100
You can re-execute history events:
• By last command
• % !!
• By the event number
• % !5
• By the number relative to current event (ago)
• % !3
• By the text of the command used
• % !ls
The shell replaces these with the full text of the history event command
line. Anything you type after them will be appended to what was typed on
the repeated event.


Give this one a try later!


shell history




update modifications date on a file without changing its contents or create a file if it
doesn't exist.


Give this one a try later!

Written for

Institution
CSCI 330
Course
CSCI 330

Document information

Uploaded on
October 27, 2025
Number of pages
42
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.50
Get access to the full document:

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


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.
TestITandFixIT Johns Hopkins University
Follow You need to be logged in order to follow users or courses
Sold
50
Member since
1 year
Number of followers
0
Documents
6261
Last sold
4 days ago

3.4

10 reviews

5
4
4
2
3
1
2
0
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 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