# QCLI sub-group: Fs

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

The Fs sub-group commands are used for file system operations.

## ls

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

This command is used to list directory contents.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| path | String | The absolute path including the mount point `/lfs`.<br><br><br>                            <ul class="ul" id="ls__ul_yz4_lmb_wbc"><br>                                <li class="li"><br>                                    <p class="p">To list the root of the file system:</p><br><br>                                    <p class="p"><code class="ph codeph"><strong class="ph b">ls /lfs</strong></code></p><br><br>                                </li><br><br>                                <li class="li"><br>                                    <p class="p">To list <span class="ph filepath">dir1</span> under the root of the file system:</p><br><br>                                    <p class="p"><code class="ph codeph"><strong class="ph b">ls /lfs/dir1</strong></code></p><br><br>                                </li><br><br>                            </ul> |

## read

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

This command is used to read from a file.

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

## write

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

This command is used to write to a file.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| filename | String | The absolute path to the file, including the mount point.<br><br><br>                            <br>For example:<br><br><br>                            <br>`write /lfs/boot_count` |
| offset | Int | The offset to start writing. |
| data | Hexadecimal data | Data in hexadecimal format. The number of hexadecimal characters (0-9 and A-F) must be even. |

## rm

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

This command is used to remove a file.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| filename | String | The absolute path to the file, including the mount point.<br><br><br>                            <br>For example:<br><br><br>                            <br>`rm /lfs/dir1/file1` |

## mount

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

This command is used to mount file system.

Last Published: Jun 03, 2026

[Previous Topic
QCLI sub-group: Lowpower](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_lowpower.md) [Next Topic
QCLI sub-group: FwUp](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_fwup.md)