Skip to content

General

GradedJestRisk edited this page Jan 17, 2024 · 17 revisions

Table of Contents

Overview

RTFM :

Versions, etc..

List:

  • kernel: uname -r
  • distribution: lsb_release -a
  • file manager xdg-mime query default inode/directory

Startup

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.
Sample of autostart file for Keepass : 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

Folder

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
get size (`du` stands for `disk usage`): `du --summarize --human-readable $DIRECTORY`

Processes

Identify the binary location of a command
which COMMAND_NAME

Logon

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'

Quotas

ulimit

Clone this wiki locally