• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

squeue: command not found

by Deepika

squeue is a command-line tool used to view the jobs that are queued or running in the SLURM job scheduler. SLURM is a popular open-source job scheduler used in many high-performance computing (HPC) environments. It is used to manage and allocate computing resources to individual jobs submitted by users.

When a user submits a job to the SLURM scheduler, it is added to a queue with other jobs waiting to be executed. squeue is used to view the status of these jobs, including their ID, priority, user, state, and the resources they are using. It also provides real-time updates on the status of running jobs.

squeue can be used with various options to filter and sort the job list. For example, the –user option can be used to show only jobs submitted by a specific user, and the –state option can be used to show jobs in a specific state (e.g., pending, running, completed, failed).

If you encounter the below error while running the command squeue:

squeue: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install slurm-client
Ubuntu apt-get install slurm-client
Kali Linux apt-get install slurm-client
Fedora dnf install slurm
OS X brew install slurm
Raspbian apt-get install slurm-client

squeue Command Examples

1. View the queue:

# squeue

2. View jobs queued by a specific user:

# squeue -u username

3. View the queue and refresh every 5 seconds:

# squeue -i 5

4. View the queue with expected start times:

# squeue --start

Summary

Overall, squeue is a useful tool for users and administrators of SLURM-based HPC clusters to view the status of jobs submitted to the scheduler. It provides a simple and efficient way to monitor the progress of jobs and the resources they are using.

Filed Under: Linux

Some more articles you might also be interested in …

  1. mdp Command Examples
  2. apktool – Reverse engineer APK files (Command Examples)
  3. route: command not found
  4. awk Command Examples in Linux
  5. sudo: command not found
  6. gifdiff: Compare two GIFs for identical visual appearance
  7. cf: Command-line tool to manage apps and services on Cloud Foundry
  8. userdel Command Examples in Linux
  9. light Command Examples in Linux
  10. keychain Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright