From 55608529de149fe596dffea8a98405211f62a970 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 6 Nov 2017 01:29:33 -0500 Subject: [PATCH] Add more commands to commands.md --- help/commands.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/help/commands.md b/help/commands.md index 131c8df7..52c0123d 100644 --- a/help/commands.md +++ b/help/commands.md @@ -34,6 +34,13 @@ Note that for all of the above, `cd` is not required. - Print the working directory: `pwd` - Make a script executable: `chmod +x ` - Termite the processes with a specific word in it: `killall -q ` +- Get the current time and settings: `timedatectl` +- Show what gets executed when you run a command: `which ` +- Create a symbolic (soft) link between two files: `ln -s ` + - When a program references `dest`, it will link to and give `source`. + - In comparison, a hard link is when you make a copy of the file +- Change the permissions of a directory to all users: `chmod -R a+rwX dir/` +- Give permissions to the user `hello` and the group `world`: `chown -R hello:world dir/` ### System Commands @@ -59,3 +66,24 @@ These programs are installed on top of the base system. - Zip all files in a directotry: `zip -r ` - Extract any type of archiving algorithm: `extract ` +### Opening Things + +Note that the preferred way to open things is with the `open` function; however, sometimes it is necessary to use these commands if, for example, you're loading an entire directory. + +- Open a video or multiple videos in a playlist: `mpv ` + +### Pacaur + +- Install packages: `pacaur -S ` +- Remove packages (including dependencies no longer needed): `pacaur -Rs ` +- Update all packages: `pacaur -Syu` + +Note that if you ever get 404s with `pacman` or `pacaur`, you need to update your local database to the new download locations with `-Syu` first. + +## Custom Commands + +- Easily switch to a 4k resolution with DPI scaling: `4k` +- Easily switch to a 1080p resolution (with 96 DPI): `1080p` +- Run a command as root: `pls ` +- Run the previous command as root: `pls !!` +