In this guide, we explored how to identify and manage bad sectors on Linux drives using badblocks and smartmontools. Keeping tabs on your storage health is crucial—and these tools make it pretty straightforward
Apart from sudo, you can also reset the root password of your Linux system through the GRUB bootloader. This is useful if you don’t have a sudo-capable user to perform a password change from the terminal. To do this, you need to force the machine to boot in “single user mode” whi...
The 5 Steps To Debug a Script in Bash Step 1: Use a Consistent Debug Library Step 2: Check For Syntax Error Step 3: Trace Your Script Command Execution Step 4: Use The Extended Debug Mode Step 5: Provide Meaningful Debug Logs A Complete Example ...
In the terminal, use thechmodcommand:chmod +x myscript.sh. This changes the script’s permissions, allowing it to be executed. How do I run a shell script? After making it executable, you can run the script by typing./myscript.shin the terminal from the directory where the script is l...
Here I use Netbeans, xdebug to debug the PHP in the terminal of Ubuntu. 1. you have to install the xdebug extension, pls refer to:[Ubuntu] Easy PHP Debugging in Ubuntu (using Xdebug and Vim) 2. Edit your profile and add this to your envirement. ...
# How to check the USB devices connected to Linux by using Terminal All In One ## `Raspberry Pi` 3 B ```sh # ✅ $ lsusb Bus 001 Device 004: ID 2e8a:000
Linux系统上的大多数系统配置文件都存放在/etc目录下。 从历史上看,每个程序都有一个或多个配置文件存放在这里,由于Unix系统上有很多软件包,/etc目录下的文件会很快积累起来。 There were two problems with this approach: It was hard to find particular configuration files on a running system, and it was...
Recently, I've encounterd a kernel oops on a embedded linux system based on I.MX6ULL and 5.10.9 version of kernel. This issue has bothered me for
Edit /etc/profile and add the following lines to the bottom of the file: 1 2 3 4 5 6 7 8 # command line audit logging function log2syslog { declare COMMAND COMMAND=$(fc -ln -0) logger -p local1.notice -t bash -i -- "${USER}:${COMMAND}" } trap log2syslog DEBUG Save an...
Boot to the wonderful Linux distro that got you into this mess. Open terminal. (Look in system tools if you don’t see it) Enter “sudo efibootmgr” If not installed, then “sudo apt-get install efibootmgr” first. Remove the “ubuntu” entry by referencing the last letter or numerical...