Cs2 Basic Usage

All Commands

A complete list of commands can be found by typing.

./cs2server

Below are the most common commands available.

Running

start

./cs2server start

stop

./cs2server stop

restart

./cs2server restart

console

Console allows you to view the live console of a server as it is running and allow you to enter commands; if supported.

./cs2server console

To exit the console press CTRL+b d. Pressing CTRL+c will terminate the server.

Updating

update

Update checks for any server updates and applies them. The server will update and restart only if required.

./cs2server update

Bypass the check and go straight to SteamCMD update.

./cs2server force-update

validate

You can use the SteamCMD validate option when updating the server.

./cs2server validate

Debugging

Details

You can get all important and useful details about the server such as passwords, ports, config files etc.

./cs2server details

Debug

Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.

./cs2server debug

Logs

Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.

/home/cs2server/logs

Backup

Backup will allow you to create a complete tar bzip2 archive of the whole server.

./cs2server backup

Monitor

LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.

./cs2server monitor

Last updated