A configuration file is a text file with the .cfg extension containing commands for configuring the game. It allows you to:
Change the sensitivity of the mouse and control;
Customize graphics for better performance;
Prescribe binds (quick commands);
Optimize network settings.
The configs help you save the settings after reinstalling the game or when switching to another PC.
Where is the config in CS2?
The path depends on the OS:
Windows:
Basic configuration:
text
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg
User Settings:
text
C:\Program Files (x86)\Steam\userdata\[Your Steam ID]\730\local\cfg
macOS:
text
~/Library/Application Support/Steam/userdata/[Your Steam ID]/730/local/cfg
(The Library folder is hidden – use Cmd+Shift +G in the Finder.)
Linux:
text
~/.steam/steam/userdata/[Your Steam ID]/730/local/cfg
How do I find the Steam ID?
Open your Steam profile.
Click "Advanced" → "Copy profile link".
Your ID is the numbers in the link.
The main types of configs
are config.cfg, an automatically generated file with basic settings.
autoexec.cfg – user commands (loaded at startup).
video.txt / audio.txt – Graphics and sound settings.
userconfig.cfg is an additional file for custom commands.
How do I create autoexec.cfg?
Open Notepad (or Notepad++).
Enter commands, for example:
text
sensitivity 1.2
bind "mouse4" "+voicerecord"
fps_max 300
cl_radar_always_centered 0
Save it as autoexec.cfg in the folder...\csgo\cfg.
How do I download autoexec.cfg automatically?
On Steam: Library → CS2 → Properties → Launch Options.
Add:
text
+exec autoexec.cfg
FPS optimization via config
Add to autoexec.cfg: