Note book to help you and me remember some tricks

Category Linux

Linux utmp, wtmp, btmp

/var/run/utmp => shows who is currently connected to the system. Not all the programs use utmp, thus you can have more users connected than displayed in utmp. /var/log/wtmp => is an historical record of utmp data /var/log/btmp => record of… Continue Reading →

mount : System Error: No route to host

(french version of this error message: mount: /mnt/refresh : échec de l’appel système mount(2) : Aucun chemin d’accès pour atteindre l’hôte cible.) You need to install cifs-utils cifs-utils brings utilities for the management of mounting points to CIFS servers (SMB… Continue Reading →

CentOS-8 – AppStream Error: Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist

Solution to CentOS 8 AppStream Error As explained here, Centos mirrors have been migrated to vault.centos.org. Then the solution is: After this you can again use the yum command but you won’t received recent updates because Centos mirrors are not… Continue Reading →

Shell script function particularities: declare local variables, run in background, …

Run a function in background and get its process ID Instead of creating another script that you call from your primary script you can simply declare a function (inside your primary script or inside another file that you include), and… Continue Reading →

Why CRLF on Linux can sometimes be displayed as ^M with line feed?

Firstly, it’s good to remember these following points: CR is for Carriage Return LF is for Line Feed On windows line endings are represented by CRLF (CR+LF) On Linux line endings are represented by LF In a shell script you… Continue Reading →

Newer posts »

© 2024 Software engineer >> Sysadmin >> Devops >> SRE

Up ↑