Linux + Slurm Flags Reference Sheet¶
Common Linux Commands Flags¶
Command |
Flag(s) |
Example |
Explanation |
|---|---|---|---|
|
|
|
Show all files, including hidden ones (those starting with a |
|
|
Use the long listing format — shows file sizes, permissions, owners, and dates. |
|
|
|
Makes file sizes human-readable (e.g., |
|
|
|
Sorts files by modification time, newest first. |
|
|
|
|
Recursively copy a folder and its contents. |
|
|
“Verbose” mode — prints what’s being copied. |
|
|
|
|
Verbose output, showing each move or rename. |
|
|
|
Removes folders recursively (everything inside). |
|
|
“Force” deletion — skips confirmation prompts. ⚠️ Use with caution. |
|
|
|
Verbose — lists each file as it’s deleted. |
|
|
|
|
Creates all necessary parent directories in the path. |
|
|
|
Adds line numbers to the file output. |
|
|
|
Shows the first n lines (default is 10). |
|
|
|
Shows the last n lines (default is 10). |
|
|
Continuously displays new lines as they’re added — useful for watching logs. |
|
|
|
|
Case-insensitive search for a word or phrase. |
|
|
Search recursively through all files in a directory. |
|
|
|
Show line numbers for each match. |
|
|
|
|
Extract a compressed |
|
|
Create a compressed archive. |
|
|
|
|
Apply permissions recursively to all files in a directory. |
Common Slurm Command Flags¶
Command |
Flag(s) |
Example |
Explanation |
|---|---|---|---|
|
|
|
Show all files, including hidden ones (those starting with a |
|
|
Use the long listing format — shows file sizes, permissions, owners, and dates. |
|
|
|
Makes file sizes human-readable (e.g., |
|
|
|
Sorts files by modification time, newest first. |
|
|
|
|
Recursively copy a folder and its contents. |
|
|
“Verbose” mode — prints what’s being copied. |
|
|
|
|
Verbose output, showing each move or rename. |
|
|
|
Removes folders recursively (everything inside). |
|
|
“Force” deletion — skips confirmation prompts. ⚠️ Use with caution. |
|
|
|
Verbose — lists each file as it’s deleted. |
|
|
|
|
Creates all necessary parent directories in the path. |
|
|
|
Adds line numbers to the file output. |
|
|
|
Shows the first n lines (default is 10). |
|
|
|
Shows the last n lines (default is 10). |
|
|
Continuously displays new lines as they’re added — useful for watching logs. |
|
|
|
|
Case-insensitive search for a word or phrase. |
|
|
Search recursively through all files in a directory. |
|
|
|
Show line numbers for each match. |
|
|
|
|
Extract a compressed |
|
|
Create a compressed archive. |
|
|
|
|
Apply permissions recursively to all files in a directory. |