This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
os_cp:intro [2025/03/05 22:42] jkonczak |
os_cp:intro [2025/03/06 13:54] (current) jkonczak [Listing directory contents] |
||
|---|---|---|---|
| Line 231: | Line 231: | ||
| The command **''ls [//dir//]''** lists file in directory ''dir''. When run with no arguments, it lists the current working directory. | The command **''ls [//dir//]''** lists file in directory ''dir''. When run with no arguments, it lists the current working directory. | ||
| \\ | \\ | ||
| - | By default ''ls'' does not list hidden files. The **''-a''** and ''--all'' switch changes this behaviour. | + | By default ''ls'' does not list hidden files. The **''-a''** switch changes this behaviour. |
| \\ | \\ | ||
| - | Switch **''-l''** / ''--list'' prints list of files with details such as file owner, size, modification date, etc. | + | Switch **''-l''** prints list of files with details such as file owner, size, modification date, etc. |
| ~~Exercise.#~~ List files in ''/usr/share/zoneinfo/'' and ''../../../../../bin''. | ~~Exercise.#~~ List files in ''/usr/share/zoneinfo/'' and ''../../../../../bin''. | ||