Commonly used · Understanding the workspace
ls: List files and directories
Syntax
ls [parameter] [path]Options
-a- Show hidden files
-l- Show permissions and properties
-h- Compatible with display switch (sandbox size is teaching value)
-R- List recursively
-d- Show only the directory itself
Examples
ls -laUsage and sandbox support
Files starting with . are hidden by default. Parameters can be combined into -la.
Hands-on exercises
- See what's in the workspaceEveryday
- Find hidden configurationsEveryday
Related commands
pwdShow current locationcdSwitch working directorytreeObserve the directory structuremanQuery command manualhelpView support scoperealpathParse absolute pathswhichFind external command locationtypeIdentify built-in and external commandslocateFind a file in the indexupdatedbUpdate file indexpushdEnter the directory and push onto the directory stackpopdPop directory stackdirsShow directory stack