Rate This Document
Findability
Accuracy
Completeness
Readability

Check the Running Mode in the Terminal Tool

Function

Uses the terminal tool to check the running mode.

Syntax

/opt/DevKit/tools/devkit runningmode -S/--source <source dir> 

/opt/DevKit/tools/ is the directory for storing the tool. Replace it with the actual directory.

Parameter Description

Table 1 Parameter description

Argument

Parameter

Description

-S/--source

source

Path of the source file to be scanned.

This parameter is mandatory.

The path must be a full path.

Example: /path/to/sourcecode

NOTE:
  • Only TAR, TAR.BZ, TAR.BZ2, TAR.GZ, TAR.XZ, TBZ, TBZ2, TGZ, TXZ, and ZIP packages can be uploaded. Only one package can be uploaded at a time. The size of the source package should be less than or equal to 1 GB. The decompressed file size should be less than or equal to half of the remaining drive space.
  • Only one folder can be uploaded at a time. The total size of files in the folder must be less than or equal to 1 GB.

Example

The following demonstrates how to analyze the TestData project code and generate an analysis report in HTML format. Replace /home/TestData/ with the actual code path to be scanned.

./devkit runningmode -S /home/TestData

The following information is displayed. Input the password of the common user in the interactive prompts.

64-bit mode check succeeded...

Success to download report to  /home/report/runningmode/20230607165827/report.html