The m_shell commands summary is:
The m_shell commands create, delete, modify, and manage multifile systems, multifiles, and catalogs. Key commands include m_mkfs to create a multifile system, m_rmfs to delete one, m_mkdir to create a multidirectory, m_rm to delete files and directories, and m_lscatalog to list entries in a catalog. The commands have options to set permissions, copy, move, list, and get usage details for the different file types.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
1K views4 pages
M - Shell Commands: Options
The m_shell commands summary is:
The m_shell commands create, delete, modify, and manage multifile systems, multifiles, and catalogs. Key commands include m_mkfs to create a multifile system, m_rmfs to delete one, m_mkdir to create a multidirectory, m_rm to delete files and directories, and m_lscatalog to list entries in a catalog. The commands have options to set permissions, copy, move, list, and get usage details for the different file types.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4
m_shell commands
Create a multifile system. control_url is the
specifying the directory to be created. Options: -m mode: Set the protection for the created multifile system, mode is one of the symbols accepted by the UNIX chmod command. -mv file: Specify that all multifiles in a m_mkfs [options] control_url multidirectory will have vfiles partition0_url [partition1_url…] (segmented files) as their partitions. By default, the multifiles in a multidirectory have standard files in their partitions. -max bytes or –max-segment-size bytes: Specify the maximum segment size for vfile partitions. The default is the system specific value. m_rmfs <path> Delete a multifile system. Create a multidirectory. m_mkdir [-m mode][-mvfile][-max- Path is the directory under which the segment-size bytes] <path> directory will be created. Remove empty multi-directories or m_rmdir directories. Remove multifiles or files. Options: -f: Force, as in the UNIX rm command. -l: Interactive, as in the UNIX rm command. -r: Recursive as in the UNIX rm m_rm [-f][-l][-r][-R][-v] url[url…] command. -R: Recursive, as in the UNIX rm command (same as –r). -v: Verbose. Emit the URL for each file, multifile, directory, or multidirectory removed. Change the protection of a file or directory of any type. Setting the protection on m_chmod mode url [url…] multifiles entails setting the identical protection on the control file and on each partition file. If the file specified by path exists, update its access time to the current time. If the m_touch url[url…] file does not exist, create it as an empty file. Path may be of type file or mfile. Make a copy of each source-file with the name and path specified by dest-url. If dest-url is a directory, the files are copied to that directory under their original names. Each source-file-url must be a file, not a directory. m_cp [-report] –a[ll-at-once]-v[erbose] Options: source-file-1 source-file-2…dest-url -a: Copy all source files at the same time. -report: Produce monitor reports as specified in the environment variable AB_REPORT. -v: Emit a message to the standard output as each file is copied. Move files or directories specified by m_mv sourcepath1 sourcepath2…dest-path source-pathn to the name and path specified by dest-path. List the specified files or directories. Options: -partitions: Following the line of the path, print a line for all its partitions. -max-skew skew: Following the line for each path, print a line for all its partitions with skew greater than skew. m_ls [-dRlarswctu][-partitions][-max-skew This option is meaningful only when –l skew][-no-commas] path path path… is supplied. -no-commas: Print directory sizes without commas. This option is meaningful only when –l is supplied. -l: Long format. This format is similar to the long format printed by the UNIX ls command. m_du [-s][-partitions][-max-skew skew][- Print to stdout the disk usage for each item no-commas] url [url…] specified by a url in units of 1024 byte blocks; the item’s skew, computed on the number of blocks occupied by each partition; and the URL for each item. Options: -s: Folowing the line for each url, print the total for the specified URL’s without the totals for all the subdirectories of the URL’s. Rests of the options are the same as above. For each path, print to stdout the following information about the containing multifile system or (standard) file system. Options: -terse: Reduce the output to a single m_df [-partitions][-max-skew skew][-no- number per line, the number of blocks commas][-terse][-fullest] path [path…] available in the specified file system. -fullest: Print information about the partitions of the multifile system that have the fewest disk blocks available. Rest are the same as above. Print to stdout various information about the multifile, multidirectory, file, or directory. Options: -n: Print the number of partitions (1 if the file is not a multifile). m_expand [-n][-hosts][-paths][-mfs] url -hosts: Print the hostnames of the partitions. -paths: (The default) Prints the pathnames of the partitions. -mfs: Print the pathname of the multifile system. Produces a human readable report that shows how input data is interpreted by Ab Initio metadata. Optionally, it can print the m_dump metadata [data][action] metadata or a description of the metadata. It can also evaluate specified expressions within each record. m_mkcatalog –catalog catalog_url Create a catalog. m_rmcatalog –catalog catalog_url Remove a catalog. List the catalog in text form. It table names are specified, list the entries for those m_lscatalog –catalog catalog_url [–table tables. If data URL’s are specified, list the name | –data data_url]* entries for those data URL’s. If neither table names nor data URL’s are specified, list all entries. m_catalog_add –catalog catalog_url –table Add an entry to the catalog. The table name –key key –data data_url –metadata name, key, data, URL and metadata URL metadata_url must all be supplied. m_catalog_delete –catalog catalog_url [- Remove entries from the catalog as table name | -data data_url]* specified by table names or data URL’s. Produce a text representation of the m_catalog_export –catalog catalog_url specified catalog on standard output. Populate the specified catalog using the text representation of a catalog provided on m_catalog_import –catalog catalog_url standard input. If the catalog exists, it must be empty.