LOGBOEK

Wat heb ik vandaag geleerd?

Reset root passwd

reboot Grub -[e]dit find the line “vmlinuz”, insert at the end: rd.break enforcing=0 Ctrl-X (boot this kernel) now you’re root at the prompt. mount -o remount,rw   /sysroot rootfs is default mounted as “readonly” by kernel. chroot   /sysroot passwd root also in /etc/shadow. exit exit certdepot

Reset root passwd Meer lezen »

Multiple consoles

On Linux (and probably Unix) there are multiple consoles to work with. Within one session you can switch between a console and therefor work from different positions into the kernel. So in one console you can be a user and in the other root. A colleague told me the history. In the past there where

Multiple consoles Meer lezen »

Packages

Within Redhat (Centos) and/or problably more distributions, this command search for which packages are installed: rpm -qa | grep “package”   –> is this package installed? rpm -ql | grep “package”   –> list the packages files rpm -qi | grep “complete package name”  –> what kind of package is it? rpm -qf /etc/redhat-release–> wich release?

Packages Meer lezen »

Symlink

A symlink (symbolic link) is similar with a hyperlink in Windows.  When you make a shortcut, you’r pointing a link to the physical location. With the       ls – al        command you can see if something is a link or a directory. But!! Only at the position where the link is. The link can

Symlink Meer lezen »