How do I create a ~/.xprofile file?

So, basically I was trying to change my monitor’s refresh rate from 60Hz to 75Hz using this tutorial, however it gets to the point where it says: “create the file ~/.xprofile” how to create this file? And how to delete it once created?

inxi -Fxz
  Kernel: 5.10.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  Desktop: GNOME 3.38.3 Distro: Manjaro Linux 
  Type: Desktop Mobo: ASUSTeK model: PRIME B450M-GAMING/BR v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 2006 date: 11/13/2019 
  Info: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ 
  rev: 2 L2 cache: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 81470 
  Speed: 1388 MHz min/max: 1550/3400 MHz boost: enabled Core speeds (MHz): 
  1: 1388 2: 1376 3: 1478 4: 1545 5: 1376 6: 1378 7: 1376 8: 1550 9: 1504 
  10: 1479 11: 1480 12: 1404 
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: XFX Pine driver: amdgpu v: kernel bus ID: 08:00.0 
  Display: x11 server: 1.20.10 driver: loaded: amdgpu 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.40.0 
  5.10.15-1-MANJARO LLVM 11.0.1) 
  v: 4.6 Mesa 20.3.4 direct render: Yes 
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  vendor: XFX Pine driver: snd_hda_intel v: kernel bus ID: 08:00.1 
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 0a:00.3 
  Sound Server: ALSA v: k5.10.15-1-MANJARO 
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: f000 bus ID: 07:00.0 
  IF: enp7s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
  Local Storage: total: 447.13 GiB used: 213.49 GiB (47.7%) 
  ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB 
  ID-1: / size: 48.97 GiB used: 35.17 GiB (71.8%) fs: ext4 dev: /dev/sda2 
  ID-2: /boot/efi size: 269.5 MiB used: 312 KiB (0.1%) fs: vfat 
  dev: /dev/sda1 
  ID-3: /home size: 389.64 GiB used: 178.32 GiB (45.8%) fs: ext4 
  dev: /dev/sda3 
  ID-1: swap-1 type: file size: 1024 MiB used: 0 KiB (0.0%) file: /swapfile1 
  System Temperatures: cpu: 46.1 C mobo: N/A gpu: amdgpu temp: 44.0 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1117 
  Processes: 303 Uptime: 14m Memory: 15.62 GiB used: 2.54 GiB (16.3%) 
  Init: systemd Compilers: gcc: 10.2.0 clang: 11.0.1 Packages: 1256 
  Shell: Zsh v: 5.8 inxi: 3.3.01

See if it is not already there.
the dot in front means it is a hidden file
enable to show hidden files in your filemanager
see whether it is already there
If it is - open it with any text editor.

Take any simple editor - not LibreOffice
and write what needs to be in that file.
Then save it as
(the filename)
save it to your HOME directory - not in any subfolder/subdirectory


in a terminal do this:
touch ~/.xprofile
then take your editor and open it and edit it


Thank you mate

no worries

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.