• 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 Examples in Linux

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).

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. scp: command not found
  2. lolcat: command not found
  3. https-server Command Examples
  4. sar: command not found
  5. engrampa: command not found
  6. lnav: command not found
  7. daemon Command Examples in Linux
  8. fossil: Distributed version control system
  9. nmcli general Command Examples in Linux
  10. ffprobe: Multimedia stream analyzer

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