Question#1 - UB



CS 435 Assignment #2

Question#1

Reading the following file it was found that web content designer has written wrong spelling of university, instead of writing university he/she wrote univercity.

Create following file in unix and write a single line command which creates a new file with correct spelling

An international, doctoral intensive comprehensive univercity, with award-winning academic programs. At the Univercity of Bridgeport, students can earn degrees in a variety of innovative undergraduate and graduate degree programs.

We are among America's strong international universities with 25 percent of our students coming from overseas. The UNivercity commitment to educate students from throughout the world is recognized in the US News and World Report issue on colleges. With students from more than 80 countries who are active in student government, publications and clubs, the Univercity of Bridgeport prides itself in being a real world "experience in globalization." Through its International Programs, the Univercity provides academic, co-curricular, and extracurricular activities which support the UnIvercity commitment to promote global citizenship and a commitment to public service.

There are 200 full- and part-time faculty, including Fulbright Scholars, National Science Foundation Fellows, Ford Fellows, National Endowment for the Humanities Fellows, American Council for Learned Societies Scholars and Phi Beta Kappa Scholars.

Known for its competent, committed, caring faculty, the UniVercity prides itself on its student-faculty ratio of 11:1. It also takes pride in its commitment to diversity. Some 32 percent of its students are members of minorities.

Committed to creating new learning venues, the Univercity of Bridgeport's School of Continuing and Professional Studies and its Office of Distance Learning pioneered the first online graduate degree program in the State of Connecticut. A variety of online courses and certificate programs are also available

Question #2

Find how many directories are there in your current directory and display the result.

Question#3

Display the name of all currently logged-in users in capital letters.

Question#4 Display the contents of /etc/passwd in one line.

Question#5 From /etc/passwd, copy username, userid and groupid (sorted by userid) into a temporary file.

Question#6

1) Display month of the unix system you are using(Do not use command date +%m).

2) Month and day of the system(in two lines)

3) Time of the system

Question#7

Create a Directory Structure foo1/foo2/foo3/foo4 using one singe command.

Question#8

When you hit backspace key, it does not delete characters, instead it produces a series of ^H characters. How can you enable the backspace.

Question # 9

Display the current date in the form dd/mm/yy.

Question # 10

Find all user on your system whose userids are greater that 99.

Question # 11

Find all logged-in users with usernames of at least four characters.

Question # 12

Find the number of users on your system whose usersid are greater than 99

Question # 13

List all the files in your directory in descending order of the file size.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download