User Tools

Site Tools


kb_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb_linux [2019/09/27 08:59] – [Misc] atlkb_linux [2023/08/24 03:09] (current) atl
Line 1: Line 1:
 ====== Boot ====== ====== Boot ======
 +
 +===== Interrupt Boot process and change the //root// password =====
 +
 +  - **Edit** the kernel boot parameters by pressing **e**
 +  - **Go to** the end of the 3linux3 line by pressing **Ctrl+e**, removing //ro crash// and add //rd.break enforcing=0//
 +  - **Start** the system by pressing **Ctrl+x**
 +  - **Remount** the root of the system:\\  mount -o remount,rw /sysroot
 +  - **Switch** to /sysroot:\\  chroot /sysroot
 +  - **Reset** the root password
 +  - **Enable** SELinux relabeling:\\  touch /.autorelabel
 +  - **Exit** the shell
  
 ===== Grub ===== ===== Grub =====
Line 19: Line 30:
 cf.[[http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216|http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216]] cf.[[http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216|http://thread.gmane.org/gmane.linux.redhat.rhn.satellite.user/216]]
  
-====== Misc ======+==== Failed to download metadata for repo ‘AppStream’ [CentOS] ===
  
-[[https://linoxide.com/linux-command/script-command-recorder/|How to Use "Script" Command To Record Linux Terminal Session]]+cf. 
 +[[https://techglimpse.com/failed-metadata-repo-appstream-centos-8/|Failed to download metadata for repo ‘AppStream’ [CentOS]]] 
 +====== Shell scripting ======
  
-[[https://www.cyberciti.biz/faq/bash-get-basename-of-filename-or-directory-name/|Bash get basename of filename or directory name]]+  * [[https://www.shellcheck.net/|https://www.shellcheck.net/]], finds bugs in your shell scripts 
 +  * [[https://www.shellscript.sh/|https://www.shellscript.sh/]], The Shell Scripting Tutorial 
 +  * [[https://www.davidpashley.com/articles/writing-robust-shell-scripts/|https://www.davidpashley.com/articles/writing-robust-shell-scripts/]], Writing Robust Bash Shell Scripts 
 +  * [[http://www.yoone.eu/articles/2-good-practices-for-writing-shell-scripts.html|http://www.yoone.eu/articles/2-good-practices-for-writing-shell-scripts.html]], Good practices for writing shell scripts \\  [[https://www.cyberciti.biz/faq/unix-linux-bash-find-out-the-exit-codes-of-all-piped-commands/|https://www.cyberciti.biz/faq/unix-linux-bash-find-out-the-exit-codes-of-all-piped-commands/]], Bash Find out the exit codes of all piped commands
  
-[[https://www.cyberciti.biz/tips/debugging-shell-script.html|How To Debug a Bash Shell Script Under Linux or UNIX]] 
  
-[[http://How To Use Bash Parameter Substitution Like A Pro|How To Use Bash Parameter Substitution Like A Pro]] +====== Misc ======
- +
-[[https://fr.wikipedia.org/wiki/Fork_bomb|Fork bomb]] +
- +
-[[https://arkit.co.in/bash-functions-linux-shell-scripting-tutorial/|Bash Functions Linux Shell Scripting Tutorial]] +
- +
-[[https://www.ostechnix.com/check-installed-linux-kernels/|How To Check Installed Linux Kernels]] +
- +
-[[http://www.techsupportalert.com/content/tips-and-tricks-linux-mint-after-installation-mint-18-mate-edition.htm|Tips and Tricks for Linux Mint after Installation [Mint 18 - MATE Edition] | Gizmo's Freeware]] +
- +
-[[https://www.ostechnix.com/find-oldest-file-directory-tree-linux/|Find The Oldest File In A Directory Tree In Linux]] +
- +
-[[https://www.ostechnix.com/find-number-cpu-cores-commandline-linux/|How To Find Number Of CPU Cores From Commandline In Linux]] +
- +
-[[https://www.ostechnix.com/find-rebooted-linux-system/|How To Find Who Rebooted The Linux System?]]+
  
-[[https://www.ostechnix.com/easy-way-protect-files-accidental-deletion-linux/|An Easy Way to Protect Files From Accidental Deletion In Linux]]+  * [[https://linoxide.com/linux-command/script-command-recorder/|How to Use "Script" Command To Record Linux Terminal Session]] 
 +  * [[https://www.cyberciti.biz/faq/bash-get-basename-of-filename-or-directory-name/|Bash get basename of filename or directory name]] 
 +  * [[https://www.cyberciti.biz/tips/debugging-shell-script.html|How To Debug a Bash Shell Script Under Linux or UNIX]] 
 +  * [[http://How To Use Bash Parameter Substitution Like A Pro|How To Use Bash Parameter Substitution Like A Pro]] 
 +  * [[https://fr.wikipedia.org/wiki/Fork_bomb|Fork bomb]] 
 +  * [[https://arkit.co.in/bash-functions-linux-shell-scripting-tutorial/|Bash Functions Linux Shell Scripting Tutorial]] 
 +  * [[https://www.ostechnix.com/check-installed-linux-kernels/|How To Check Installed Linux Kernels]] 
 +  * [[http://www.techsupportalert.com/content/tips-and-tricks-linux-mint-after-installation-mint-18-mate-edition.htm|Tips and Tricks for Linux Mint after Installation [Mint 18 - MATE Edition] | Gizmo's Freeware]] 
 +  * [[https://www.ostechnix.com/find-oldest-file-directory-tree-linux/|Find The Oldest File In A Directory Tree In Linux]] 
 +  * [[https://www.ostechnix.com/find-number-cpu-cores-commandline-linux/|How To Find Number Of CPU Cores From Commandline In Linux]] 
 +  * [[https://www.ostechnix.com/find-rebooted-linux-system/|How To Find Who Rebooted The Linux System?]] 
 +  * [[https://www.ostechnix.com/easy-way-protect-files-accidental-deletion-linux/|An Easy Way to Protect Files From Accidental Deletion In Linux]]
  
  
kb_linux.1569589174.txt.gz · Last modified: by atl