Computer Knowledge

Computer File Systems

1,249 Questions

Computer file systems dictate how data is stored, organized, and retrieved on storage devices. Important concepts include file allocation tables, access mechanisms, and various formats like sequential and video files. Candidates preparing for banking and government exams should practice these fundamentals thoroughly.

File access mechanismsVideo and password filesFile extensionsFile allocation tableSystem metadata

Computer File Systems Questions

Multiple choice technology operating systems
  1. checks for the existence of a file

  2. checks for existence of a directory

  3. checks for read permission on a file

  4. checks for write permission on a file

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The -f test operator checks whether a file exists AND is a regular file (not a directory or device). In shell scripting, [ -f filename ] returns true only if the specified path is an existing regular file.

Multiple choice technology web technology
  1. *.idx and *.bat

  2. *.idx and *.dat

  3. *.che and *.txt

  4. *.dat and *.err

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Informatica cache files consist of index files with the .idx extension and data files with the .dat extension.

Multiple choice technology web technology
  1. *.idx and *.bat

  2. *.idx and *.dat

  3. *.che and *.txt

  4. *.dat and *.err

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Informatica cache files are created in the cache directory and consist of index files with the .idx extension and data files with the .dat extension.

Multiple choice technology programming languages
  1. gunzip/expand

  2. gzip

  3. zip

  4. winzip

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

gunzip is the standard command to uncompress .gz files, and expand uncompresses files created with the compress command. gzip is for compression (not decompression), zip creates .zip archives, and winzip is not a Unix tool.

Multiple choice technology programming languages
  1. tar -cvf file/tar -xvf file

  2. tar -xvf file /tar -cvf file

  3. tar -cvf file.tar <file>/tar -xvf file.tar <file>/

  4. tar -xvf file.tar <file>/tar -cvf file.tar <file>/

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To create a tar archive, the syntax is tar -cvf archive.tar. To extract (untar) it, the syntax is tar -xvf archive.tar. Option 510833 correctly represents this pair of commands.

Multiple choice technology programming languages
  1. Every one can read, group can execute only and the owner can read and write

  2. Every one can read and write, but owner alone can execute

  3. Every one can read, group including owner can write, owner alone can execute

  4. None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Permission 764 means: owner has 7 (rwx=read+write+execute), group has 6 (rw=read+write), others have 4 (r=read only). So everyone can read, group+owner can write, and only owner can execute.

Multiple choice technology programming languages
  1. vi -R <filename>

  2. vi filename readonly

  3. vi -r

  4. Not possible

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The -R flag opens vi in read-only mode, preventing accidental modifications. Option B's 'readonly' is not a valid flag syntax, and option C's -r is for recovery mode after a crash. The 'view' command is equivalent to 'vi -R'.

Multiple choice technology programming languages
  1. Copies file1 to file2

  2. Compares file1 and file2 and update file1 with file2 whereever differs

  3. Compares file1 and file2 and update file2 with file1 whereever differs

  4. None

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The cmp command compares two files byte-by-byte and reports the first location where they differ (with byte and line numbers). It performs read-only comparison and modifies neither file.

Multiple choice technology programming languages
  1. fsck

  2. fsmount

  3. mount

  4. mountfs

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The mount command attaches a file system to a directory tree, making it accessible. fsck checks file system consistency, fsmount and mountfs are not standard Unix commands. mount is the fundamental utility for mounting file systems.

Multiple choice technology programming languages
  1. gunzip/expand

  2. gzip

  3. zip

  4. winzip

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

gunzip decompresses gzip archives (.gz files) and expand handles compressed files (.Z format). gzip is for compression, zip creates archives, and winzip doesn't exist on Unix systems. Both gunzip and expand are valid decompression tools.

Multiple choice technology programming languages
  1. tar -cvf file/tar -xvf file

  2. tar -xvf file /tar -cvf file

  3. tar -cvf file.tar <file>/tar -xvf file.tar <file>/

  4. tar -xvf file.tar <file>/tar -cvf file.tar <file>/

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

tar -cvf creates archives (c=create, v=verbose, f=file) and tar -xvf extracts them (x=extract). The correct syntax requires specifying the archive filename: tar -cvf archive.tar file(s) to create, tar -xvf archive.tar to extract. Option A and B reverse the create/extract order.

Multiple choice technology programming languages
  1. Every one can read, group can execute only and the owner can read and write

  2. Every one can read and write, but owner alone can execute

  3. Every one can read, group including owner can write, owner alone can execute

  4. None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Permission 764 in octal means: Owner (7) = read(4)+write(2)+execute(1), Group (6) = read(4)+write(2), Others (4) = read(4). So everyone can read, owner has full access, and group can read/write. Option C correctly states: everyone can read, group including owner can write, owner alone can execute.

Multiple choice technology programming languages
  1. fsck

  2. fsmount

  3. mount

  4. mountfs

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The mount command is used to attach file systems to the directory tree in Unix/Linux. fsck is for file system checking and repair, not mounting. fsmount and mountfs are not standard Unix/Linux commands.