-
Notifications
You must be signed in to change notification settings - Fork 0
General
GradedJestRisk edited this page Jan 17, 2024
·
17 revisions
RTFM :
- CLI:
-
man COMMAND_NAME
- examples only
- examples only, with votes
-
- web:
List:
- kernel:
uname -r
- distribution:
lsb_release -a
- file manager
xdg-mime query default inode/directory
On startup, system:
- mount all elements in
/etc/fstab
(except those with noauto option); - start services with autostart option
- start some applications, previously set up using:
- UI: use
gnome-session-properties
; - CLI: create a autostart (
.desktop
) file in~/.config/autostart
folder.
- UI: use
keepassxc.desktop
file :
[Desktop Entry] Type=Application Exec=/usr/bin/keepassxc Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_US]=Keepass Name=Keepass Comment[en_US]=Password manager Comment=Password manager
Overview:
- list last 5 modified files
ls -ltr | tail -5
- get total size of files in directory matching pattern
du -csh *temp* | tail -1 | cut -f 1
- use config file for ls
Identify the binary location of a command
which COMMAND_NAME
User initialization scripts:
- main :
~/.bash_profile
- main in Ubuntu:
’~/.profile`
- system-wide environment variables
/etc/environment
- all:
echo exit | strace bash -li |& less | grep '^open'