V6(8) UNIX Programmer's Manual V6(8) NAME v6 - version 6 UNIX file system access utility SYNTAX v6 [ -r ] special DESCRIPTION _V_6 reads a version 6 UNIX file system present on the block special file _s_p_e_c_i_a_l. It reads the root directory of the file system, which is then the current directory. At any time there is a current version 6 working directory in addi- tion to the current version 7 directory (that in effect at the time the program was entered). _V_6 allows the user to change version 6 directories, list their entries, print the contents of files on the terminal, and copy them onto a ver- sion 7 file system. It does not include any operations that write on or change the version 6 file system. The -r option allows examination of a damaged file system; it suppresses the reading of the superblock or the root directory. COMMANDS The available commands are: ls [ -i ] [ name ] List entries in directory _n_a_m_e; list current directory if no argument. -i gives inode numbers of files. cd name Change to (version 6) directory _n_a_m_e. cat file Print version 6 file _f_i_l_e on terminal cp file1 file2 Copy version 6 _f_i_l_e_1 to (v7) file _f_i_l_e_2 cpdir Copy all files in current v6 directory to current version 7 directory printi inumber ... Print the contents of the specified inodes. printblk blk Print the contents of the specified block. cpblk file blk ... Copy the specified blocks to v7 file _f_i_l_e. The blocks are appended to the file if it exists, otherwise the file is created. rootino inumber Inode _i_n_u_m_b_e_r is taken to be that of the root directory, and the corresponding directory is read. Printed 8/2/83 1 V6(8) UNIX Programmer's Manual V6(8) ! Escape to the shell; the rest of the line is passed to the shell. ? Print the list of available commmands q or ^d Exit from the program DIAGNOSTICS Invalid command. Input line too long. Input line limited to 80 characters. BUGS It believes the superblock, thus results are unpredictable if the file system is not healthy. Cpdir is not recursive. AUTHOR Mike Karels, University of California at Berkeley Printed 8/2/83 2