Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 3 : The File System 8 9 catand moreare used to display the contents of a file. moresupports a number of internal commands that

Chapter 3: The File System 89catand moreare used to display the contents of a file. moresupports a number of internal commands that enable paging and searching for a pattern. Linux offers less as a superior pager.Rudimentary editing tasks can be performed with the picoeditor. The program uses the Control keys for all navigation and editing operations. You can perform cut-and-paste operations using the keys [Ctrl-k]and [Ctrl-u], respectively.lpsubmits a job for printing which is actually carried out by a separate program. Linux and many UNIX systems use the lprcommand for printing. Both can be directly used to print Postscript documents.wccounts the number of lines, words, and characters. oddisplays the octal value of each character and is used to display invisible characters.The dos2unixand unix2doscommands convert files between DOS and UNIX. DOS files use CR-LF as the line terminator, while UNIX uses only LF. The todosand fromdos commands also perform the same functions.gzipand gunzipcompresses and decompresses individual files (extension: .gz). tarcan archive a directory tree and is often used with gzipto create compressed archives (extension: .tar.gz or .tgz). zipand unzipuse .zip files. zipalone can create a compressed archive from directory structures (-r). bzip2is better than zipand unzip (extension: .bz2).SELF-TEST3.1 How long can a UNIX filename be? What characters cant be used in a filename?3.2 State two reasons for not having a filename beginning with a hyphen.3.3 Name the two types of ordinary files, and explain the difference between them. Provide three examples of each type of file.3.4 Can the files noteand Notecoexist in the same directory?3.5 Frame cdcommands to change from (i)/var/spool/lp/adminsto/var/spool/mail,(ii)/usr/include/systo /usr.3.6 Switch to the root directory with cd, and then run cd ..followedby pwd. What do you notice?3.7 Explain the significance of these two commands: ls .. ; ls -d ...3.8 Can you execute any command in /sbinand /usr/sbinby using the absolute pathname?3.9 If the file /bin/echoexists on your system, are the commands echoand /bin/echoequivalent?3.10 Look up the man pages of mkdirto find out the easiest way of creating this directory structure: share/man/cat1.3.11 If mkdir testfails, what could be the possible reasons?3.12 How do you run lsto (i) mark directories and executables separately, (ii) also display hidden files?3.13 What will cat foo foo foodisplay?3.14 A file contains nonprintable characters. How do you view them?3.15 How will you copy a directory structure bar1to bar2? Does it make anydiffer-ence if bar2exists?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

identify current issues relating to equal pay in organisations

Answered: 1 week ago