General - GradedJestRisk/linux-training GitHub Wiki
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:
- UI: to add a UI application, run
gnome-session-properties; - CLI: to add a CLI application, use your terminal `rc` file or create a autostart (
.desktop) file in~/.config/autostartfolder.
- UI: to add a UI application, run
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'