# QCLI sub-group: SecureFs

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html)

The SecureFs sub-group commands are used for secure storage file system operations.

## setPassword

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html)

This command sets user passwords.

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| password\_in\_hex | String | The password for secure storage. It has 32 hexadecimal characters.<br><br><br>                            <br>Default value: `00112233445566778899aabbccddeeff` |

**Example:**

    setpassword 112233445566778899aabbccddeeff00Copy to clipboard

## ls

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html)

This command lists directory contents.

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| path | String | The absolute path including the mount point `/lfs`.<br><br><br>                            <ul class="ul" id="securefs_ls__ul_h1c_ymd_phc"><br>                                <li class="li">To list the root of the file system:<pre class="pre codeblock nohighlight"><code>ls /lfs</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre></li><br><br>                            </ul><br><br>                            <ul class="ul" id="securefs_ls__ul_i1c_ymd_phc"><br>                                <li class="li">To list <code class="ph codeph">dir1</code> under the root of the file system:<pre class="pre codeblock nohighlight"><code>ls /lfs/dir1</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre></li><br><br>                            </ul> |

## read

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html)

This command reads and decrypts length bytes of data from a file and prints it in hexadecimal format.

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| filename | String | The absolute path to the file, including the mount point. |
| length | Int | The total length of data to read from the file.<br><br><br>                            <br>If the specified length is greater than the total length of the file, the command only returns the data from the offset to the end of the file. |

**Example:**

    read /lfs/test 8Copy to clipboard

## write

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html)

This command encrypts the hexadecimal data and writes it into a file. It supports two input modes:

- Short input consisting of an even number of hexadecimal string
- Long input consisting of a continuous sequence of identical hexadecimal characters

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| filename | String | The absolute path to the file, including the mount point. |
| data | Hexadecimal data | Data in hexadecimal format. Two input modes:<ul class="ul" id="securefs_write__ul_ug2_f4d_phc"><br>                                <li class="li">The number of hexadecimal characters (0-9 and A-F) is even if length is null</li><br><br>                                <li class="li">The number of hexadecimal characters (0-9 and A-F) is 1 if length isn't null</li><br><br>                            </ul> |
| length | Int | Optional. The number of consecutive identical hexadecimal bytes if the input data only consists of a single hexadecimal character. |

**Example:**

    write /lfs/test 0123456789ABCDEF
    write /lfs/test 1 1000Copy to clipboard

## rm

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli_sub_group_securefs.html)

This command removes a file.

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| filename | String | The absolute path to the file, including the mount point. |

**Example:**

    rm /lfs/dir1/file1Copy to clipboard

Last Published: Jun 03, 2026

[Previous Topic
QCLI sub-group: Crypto](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_crypto.md) [Next Topic
QCLI sub-group: RTT](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_rtt.md)