• 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

cockpit-ws Command Examples in Linux

by admin

The cockpit-ws command is a utility in Linux that is used to start the Cockpit web service, which is a web-based interface for managing and monitoring your system. Cockpit is a free, open-source system management tool that provides an easy-to-use interface for managing and monitoring your system.

To start the Cockpit web service and listen on the default port (9090), use the following command:

# cockpit-ws

This will start the Cockpit web service and listen on the default port (9090).

To start the Cockpit web service and listen on a specific port, use the –port option followed by the desired port number:

# cockpit-ws --port 8080

This will start the Cockpit web service and listen on port 8080.

cockpit-ws Command Examples

1. Start with authentication via SSH at 127.0.0.1 with port 22 enabled:

# cockpit-ws --local-ssh

2. Start an HTTP server on a specific port:

# cockpit-ws --port [port]

3. Start and bind to a specific IP address (defaults to 0.0.0.0):

# cockpit-ws --address [ip_address]

4. Start without TLS:

# cockpit-ws --no-tls

5. Display help:

# cockpit-ws --help

6. To start the Cockpit web service and listen on a specific interface, use the –listen option followed by the desired interface:

# cockpit-ws --listen eth0

Filed Under: Linux

Some more articles you might also be interested in …

  1. sudo: command not found
  2. gradle Command Examples
  3. calendar: Display upcoming events from a calendar file
  4. gdb: The GNU Debugger
  5. “aws secretsmanager” Command Examples
  6. cpulimit: command not found
  7. How to Disable Daylight Savings Time (DST), and Modify the Timezone on Linux
  8. “git am” Command Examples
  9. iconv Command Examples
  10. apt Command Examples in Linux

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