💾 Archived View for squid.flounder.online › cheatsheet › linux.gmi captured on 2023-11-04 at 11:21:52. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Return to Squid's World

Return to Squid's Cheat Sheets

General

Show the permissions (as 'octal' - i.e. 755) for file

stat -c '%a' /path/to/file

Add a path to $PATH

export PATH=/new/path:$PATH

Show GPU Information

sudo lshw -C display

Create a Symlink

ln -s <actual_file> <link_path>

Connect to IRC gemini://flounder.online/Server in Weechat

/server add libera irc.libera.chat/6697 -ssl (if you haven't done)

/connect libera

Install .deb file

sudo dpkg -i <package>

Fix Degraded SystemCtl Status

systemctl reset-failed

Return to Squid's World

xrandr

Show all monitors

xrandr --listmonitors

Swap outputs (the valid name of a monitor is on far right of the --listmonitors output)

xrandr --output HDMI-A-0 --left-of DisplayPort-1

Set a global alias here

/etc/profile

Grab file from the web and save it as a file on your system

curl -s https://code.jquery.com/jquery-3.6.0.min.js > jquery.js