Menampilkan postingan dari September, 2020

Fix kernel linux server yang hilang pada direktori /boot

1. Masuk server dengan menggunakan live CD yang sesuai dengan versi existing 2. Masuk ke dalam rescue mode dan install rescue mode 3. Jika sudah masuk ke dalam shell command masukan perintah chroot /mnt/sysimage/ kemudian df -h untuk memastikan partis…

How to rename /dev/sda-sdn (partition) in linux

1. Umount the partition with this command " # umount /part " 2. Rename the partition after making sure it's not mounted with this command " # mountpoint /part &>/dev/null || mv /part /best_name_ever " 3. Edit /etc/fstab …

How to add time & date for each command linux history

1. Defining the environment variable named HISTTIMEFORMAT as follows:  echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile where, %d – Day %m – Month %y – Year %T – Time 2. Use the source command to load HISTTIMEFORM…

how to find largest file in directory recursively using find/du

1. Open the terminal application 2. Login as root user using the sudo -i command 3. Type du -a /dir/ | sort -n -r | head -n 20 4. du will estimate file space usage 5. sort will sort out the output of du command 6. head will only show top 20 largest fi…

Muat postingan lainnya
Tak ada hasil yang ditemukan