Linux Command Desk

Find a short command for an everyday support problem. These basics are public; complete Bash scripts and guided tools have separate access rules.

Read-only checks. Review paths and permissions. Nothing runs here. Commands target GNU/Linux; systemctl needs systemd and help/type examples target Bash. Package-manager and destructive commands are deliberately outside this first release.

24 commands

Files · READ-ONLY

Where am I?

pwd

Print the current working directory.

Files · READ-ONLY

List files including hidden names

ls -lah

Show entries, permissions and sizes in the current directory.

Files · READ-ONLY

Inspect a file

stat -- 'YOUR_FILE'

Replace YOUR_FILE with your path; show file metadata.

Files · READ-ONLY

Count lines in an export

wc -l -- 'YOUR_FILE'

Counts newline characters, not necessarily logical records.

Files · READ-ONLY

View first lines

head -n 20 -- 'YOUR_FILE'

Show the first 20 lines; output may contain private data.

Files · READ-ONLY

View last lines

tail -n 50 -- 'YOUR_FILE'

Show the last 50 lines without following the file.

Storage · READ-ONLY

Check disk capacity

df -h

Show filesystem space; available capacity depends on the filesystem.

Storage · READ-ONLY

Check inode capacity

df -i

Look for exhausted inodes even when free bytes remain.

Storage · READ-ONLY

Measure a folder

du -sh -- 'YOUR_FOLDER'

Read-only traversal; large folders can take time.

Storage · READ-ONLY

Show mounted filesystems

cat /proc/mounts

Linux mount details, including potentially sensitive paths.

Identity · READ-ONLY

Who is this session?

id

Show current user and groups, not another user’s access rights.

Identity · READ-ONLY

Current username

whoami

Show the effective username.

Shell · READ-ONLY

Check command resolution

type -a -- 'YOUR_COMMAND'

Bash: show aliases, functions and executable matches.

Shell · READ-ONLY

Check shell version

bash --version

Show the installed Bash version.

Shell · READ-ONLY

Show command help

help cd

Bash built-in help. Replace cd with another Bash built-in.

System · READ-ONLY

Current UTC time

date -u

Inspect UTC time; not a synchronisation health check.

System · READ-ONLY

Kernel release

uname -r

Show kernel release.

System · READ-ONLY

OS release

cat /etc/os-release

Common Linux distribution identification file.

System · READ-ONLY

Memory counters

cat /proc/meminfo

Linux kernel memory figures; free memory alone does not show pressure.

System · READ-ONLY

System uptime

cat /proc/uptime

Linux uptime and aggregate idle seconds.

Services · READ-ONLY

Failed system services

systemctl --failed --type=service --no-pager

Requires systemd; inspect failures without restarting.

Services · READ-ONLY

Inspect a service

systemctl status --no-pager -- 'YOUR_SERVICE'

Replace with an installed unit. Nonzero exit status can mean inactive or failed.

Services · READ-ONLY

List scheduled timers

systemctl list-timers --all --no-pager

Shows loaded timers; not all installed timer unit files.

Services · READ-ONLY

Check user service failures

systemctl --user --failed --no-pager

Run in the affected user session; needs a user service manager.

References: GNU Coreutils · GNU Bash · systemctl · Linux procfs