1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| # List all files in a directory
ls -la
# Change directory
cd /path/to/directory
# Display the current directory
pwd
### 3. **Code Block for PowerShell Commands**
Similarly, for PowerShell commands, specify the language as `powershell`:
```markdown
```powershell
# Get the list of processes
Get-Process
# List files in a directory
Get-ChildItem -Path C:\
# Display system information
Get-ComputerInfo
### 4. **Using Hugo's Highlight Shortcode**
You can also use Hugo's internal highlight shortcode to add these command blocks, which allows you to include additional options like line numbers:
#### Linux Commands:
```markdown
1
2
3
4
5
6
7
8
| # List all files in a directory
ls -la
# Change directory
cd /path/to/directory
# Display the current directory
pwd
|
|