search
Log In

Recent questions tagged unix

0 votes
2 answers
1
0 votes
0 answers
2
Which statements is not correct about “init” process in Unix? It is generally the parent of the login shell. It has PID $1$. It is the first process in the system. Init forks and execs a ‘getty’ process at every port connected to a terminal.
asked Mar 24 in Operating System jothee 70 views
0 votes
0 answers
3
A notebook computer is set up to take maximum advantage of power saving features including shutting down the display and the hard disk after periods of inactivity. A user sometimes runs UNIX programs in text mode, and at other times uses the $X$ Window System. She is surprised to find that battery life is significantly better when she uses text-only programs. Why?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 31 views
0 votes
1 answer
4
Many versions of UNIX use an unsigned $32$-bit integer to keep track of the time as the number of seconds since the origin of time. When will these systems wrap around (year and month)? Do you expect this to actually happen?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 57 views
0 votes
0 answers
5
A personal computer salesman visiting a university in South-West Amsterdam remarked during his sales pitch that his company had devoted substantial effort to making their version of UNIX very fast. As an example, he noted that their disk driver used the elevator ... the performance that he measured was identical to what would be expected from first-come, first-served. Was the salesman lying?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 51 views
0 votes
0 answers
6
Implement a program to measure the impact of application-level buffer sizes on read time. This involves writing to and reading from a large file (say, $2$ GB). Vary the application buffer size (say, from $64$ bytes to $4$ KB). Use timing measurement ... buffer sizes. Analyze the results and report your findings: does buffer size make a difference to the overall write time and per-write time?
asked Oct 28, 2019 in Operating System Lakshman Patel RJIT 71 views
0 votes
0 answers
7
Write a new version of the UNIX ls program. This version takes as an argument one or more directory names and for each directory lists all the files in that directory, one line per file. Each field should be formatted in a reasonable way given its type. List only the first disk address, if any.
asked Oct 27, 2019 in Operating System Lakshman Patel RJIT 28 views
0 votes
0 answers
8
Write a program that scans all directories in a $UNIX$ file system and finds and locates all i-nodes with a hard link count of two or more. For each such file, it lists together all file names that point to the file.
asked Oct 27, 2019 in Operating System Lakshman Patel RJIT 34 views
0 votes
0 answers
10
We discussed making incremental dumps in some detail in the text. In Windows it is easy to tell when to dump a file because every file has an archive bit. This bit is missing in $UNIX.$ How do $UNIX$ backup programs know which files to dump?
asked Oct 27, 2019 in Operating System Lakshman Patel RJIT 31 views
0 votes
0 answers
12
In early UNIX systems, executable files (a.out files) began with a very specific magic number, not one chosen at random. These files began with a header, followed by the text and data segments. Why do you think a very specific number was chosen for executable files, whereas other file types had a more-or-less random magic number as the first word?
asked Oct 26, 2019 in Operating System Lakshman Patel RJIT 49 views
0 votes
0 answers
13
Examine and try to interpret the contents of a UNIX-like or Windows directory with a tool like the UNIX od program. (Hint: How you do this will depend upon what the OS allows. One trick that may work is to create a directory on a USB stick with one operating system and then read the raw device data using a different operating system that allows such access.)
asked Oct 23, 2019 in Operating System Lakshman Patel RJIT 51 views
0 votes
0 answers
14
Figure $1-23$ shows that a number of UNIX system calls have no Win32 API equivalents. For each of the calls listed as having no Win32 equivalent, what are the consequences for a programmer of converting a UNIX program to run under Windows?
asked Oct 23, 2019 in Operating System Lakshman Patel RJIT 75 views
0 votes
0 answers
15
asked Jan 25, 2019 in Operating System Sanjay Sharma 145 views
0 votes
0 answers
16
Where can I study the UNIX portion of OS? That is relavent for GATE.
asked Jan 1, 2019 in Operating System Naruto Uzumaki 59 views
0 votes
1 answer
17
Which UNIX/Linux command is used to mae all files and sub-directions in the directory "progs" executable by all users? chmod - R a + x progs chmod - R 222 progs chmod - X a + x progs chmod - X 222 progs
asked Jul 13, 2018 in Operating System Pooja Khatri 355 views
0 votes
1 answer
18
Choose the incorrect statement Shell scripts can accept arguments Shell scripts are interpreted Shell is a programming language Shell scripts are compiled
asked Mar 2, 2018 in Unknown Category gatecse 71 views
1 vote
1 answer
19
The command cat > x in unix is invalid creates a file x and displays an error message creates a file x and waits for the user to give input from the keyboard none of the above
asked Mar 2, 2018 in Unknown Category gatecse 75 views
1 vote
0 answers
20
how 3 could be ans?
asked Jan 18, 2018 in Operating System srestha 174 views
2 votes
1 answer
21
0 votes
1 answer
22
Files that are related to input/output and are used to model serial I/O devices such as terminals, printers and networks are called : (A) regular files (B) character special files (C) directories (D) block special files
asked Sep 27, 2017 in Others rishu_darkshadow 335 views
0 votes
2 answers
23
The Unix command used to find out the number of characters in a file is (A) nc (B) wc (C) chcnt (D) lc
asked Sep 17, 2017 in Operating System rishu_darkshadow 356 views
1 vote
0 answers
24
Explain the following terms with there respective formula (expression) 1) Max file size 2) Max possible file size 3) Max Disk Size 4) Total file size 5) max possible size of the file system. For max possible file size = https://gateoverflow.in/20440/unix-inode https:// ... $\text{size of disk block} * 2^\text{No of bits for Disk Block Addresses}$. When to use what please clear this doubt.
asked Sep 6, 2017 in Operating System Shubhanshu 340 views
3 votes
1 answer
25
Consider the organization of a UNIX file as represented by the inode Assume that there are 12 direct block pointers, and a singly, doubly, and triply indirect pointer in each inode. Further, assume that the system block size and the disk sector size are both 8KB. If the ... the file inode is already in main mem- ory, how many disk accesses are required to access the byte in position 13,423,956?
asked Aug 26, 2017 in Operating System rahul sharma 5 1.3k views
2 votes
0 answers
26
A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl-C input is given to this process, what is the mode in which the signal handling routine executes? User mode Kernel mode Superuser mode Privileged mode Note : I know this is previous year question
asked Aug 17, 2017 in Operating System hem chandra joshi 109 views
2 votes
2 answers
27
Q1> Consider the Unix file node which maintains 12 direct disk block addresses, 1 single indirect, 1 double indirect, and 1 triple indirect disk block addresses. The disk block address requires 32 bits and DB size is 1 KB then calculate 1. total file size. 2. ... location of data byte no. 10000000 Byte in the file, location comprises of <In which direct/ indirect pointers branch the address is>
asked Aug 16, 2017 in Operating System Shubhanshu 1k views
5 votes
1 answer
28
The Linux command mknod myfifo b 4 16 will create a character device if user is root will create a named pipe FIFO if user is root will create a block device if user is root None of these
asked May 7, 2017 in Operating System sh!va 4.4k views
0 votes
1 answer
29
The following source code corresponding to a 'bash' shell script 'sl.sh' in UNIX system: for i in $* do cat $ ... of all the files in present working directory. (C) Displays contents of all the files in present working directory. (D) Displays an error message.
asked Mar 6, 2017 in Others Beyonder 360 views
0 votes
0 answers
30
What all topics do we need to study from the topic ' File Systems' in Operating System for GATE ?
asked Jan 17, 2017 in Operating System jatinmittal199510 260 views
...