Fleet logo
Menu An icon indicating that interacting with this button will open the navigation menu.
Fleet logo An 'X' icon indicating that this can be interacted with to close the navigation menu.
Multi platform
Device management   (+ MDM) Orchestration   (+ monitoring) Software management   (+ CVEs) Integrations

Docs
Stories
News Ask around Meetups Share your story COMPANY
The handbook Testimonials

Pricing Schedule a demo
Multi platform
Device management + MDM Orchestration + monitoring Software management + CVEs, usage, app library Integrations
Docs
Stories
News Ask around Meetups Schedule a demo Share your story COMPANY The handbook Testimonials
Pricing Try it yourself

Tables

Fleet uses osquery tables to query operating system, hardware, and software data. Each table provides specific data for analysis and filtering.

macOS Apple

Linux Linux

Windows Windows

Chrome ChromeOS

{{table.title}} evented table

shell_history

click to open the table of contents
macOS logo Linux logo

shell​_history

A line-delimited (command) table of per-user .*_history data.

Column Type Description
command text Unparsed date/line/command history line
history_file text Path to the .*_history for this user
time integer Entry timestamp. It could be absent, default value is 0.
uid bigint Shell history owner

Example

SELECT * FROM users CROSS JOIN shell_history USING (uid);

See command line executions and related timestamps. Useful for threat hunting when a device is suspected of being compromised.

SELECT u.username, s.command, s.time FROM users u CROSS JOIN shell_history s USING (uid);

Notes

  • Querying this table requires joining against the users table. Learn more
Edit page

Questions?

Ask us anything
{{table.title}} evented table
Fleet logo
Multi platform Device management Orchestration Software management Integrations Pricing
Documentation Support Docs API Release notes Get your license
Company About News Jobs Logos/artwork Why open source?
ISO 27001 coming soon a small checkmarkSOC2 Type 2 Creative Commons Licence CC BY-SA 4.0
© 2025 Fleet Inc. Privacy
Slack logo GitHub logo LinkedIn logo X (Twitter) logo Youtube logo Mastadon logo
Tried Fleet yet?

Get started with Fleet

Start
continue
×