Useful Unix commands in the router/’svl-jtac-tool’ shell

This article provides information about the useful Unix commands that can be used in the router/svl-jtac-tool shell during troubleshooting and normal operations.

Information about the useful Unix commands that can be used in the router/svl-jtac-tool shell during troubleshooting and normal operations.

Customized search in different locations:

  • . current directory
  • / whole system
  • ~ Home directory

To list all the files whose file size is bigger than 4096 bytes, use the following command:

To list all the files whose file size is smaller than 4096 bytes, use the following command:

To list all the file names whose file size is greater than 512bytes and owner is lab (check this in the router), use the following command:

To list all file names whose file size is greater than 512bytes and owner is rengar (check this in the server), use the following command:

To calculate the total size of a directory in Mb, use the following command:

To calculate the total size of a directory, including sub directories, in Mb, use the following command:

To identify the largest file in a directory, including sub directories, use the following command:

To delete leading whitespace (spaces, tabs) from the beginning of each line, use the following command:

To delete trailing whitespace (spaces, tabs) from the end of each line, use the following command:

To delete both leading and trailing whitespaces from each line, use the following command:

To delete all blank lines from a file, use the following command:

To clear the terminal screen, use the following commands:

 

About the author

Prasanna

Leave a Comment