cat

cat {--number | -n } {--number-nonblank | -b } {--show-ends | -E } {--show-tabs | -T } {--show-nonprinting | -v }

Description

Displays the contents of various text files that may be created, edited, or otherwise visible in the user-visible file system.

Syntax Description

--number Specifies that all output lines are numbered.
-n Specifies that all output lines are numbered (same as --number).
--number-nonblank Specifies that nonempty lines be numbers (overrides --number).
-b Specifies that nonempty lines be numbers (same as --number-nonblank).
--show-ends Displays $ at the end of each line.
-E Displays $ at the end of each line (same as --show-ends).
--show-nonprinting Specifies to use ^ and M- notation, except for LF and TAB.
-v Specifies to use ^ and M- notation, except for LF and TAB (same as --show-nonprinting).
--show-tabs Displays TAB characters as ^I.
-T Displays TAB characters as ^I (same as --show-tabs).

Default

N/A

Usage Guidelines

Example files include ExtremeXOS shell script (.xsf), Python (.py), policy (.pol), license (.lic), and logging (.log) files.

There is no restriction on the type of file to be displayed.

CLI paging is effective for this command, but output filtering is not.

Example

The following example displays all options and filetypes for this command:

# cat ?
  --number            Number all output lines
  --number-nonblank   Number nonempty output lines (overrides --number)
  --show-ends         Display $ at end of each line
  --show-nonprinting  Use ^ and M- notation, except for LF and TAB
  --show-tabs         Display TAB characters as ^I
  -E                  Display $ at end of each line (same as --show-ends)
  -T                  Display TAB characters as ^I (same as --show-tabs)
  -b                  Number nonempty output lines (same as --number-nonblank)
  -n                  Number all output lines (same as --number)
  -v                  Use ^ and M- notation, except for LF and TAB (same as --show-nonprinting)
  <filename>          File name
    ../                                  ./                                   
    VZbase.pol                           VZbase1.pol                          
    VZbase2.pol                          cc_logs/                             
    dhcp-reply.pcap                      dhcp-reply.pkt                       
    dhcpreply.pkt                        dhcpresp.pkt                         
    dhcpresp.py                          lost+found/                          
    nsi.dmp                              nsi_last_req.dmp                     
    nsi_new.dmp                          nsi_re.dmp                           
    old_nsi_first_req_after_reboot.dmp   old_nsi_last_req.dmp                 
    primary.cfg                          rest.tar                             
    rest/                                ssl/                                 
    test.xsf                             vmt/

History

This command was first available in ExtremeXOS 31.4.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, and X695 series switches.