Showing posts with label file. Show all posts
Showing posts with label file. Show all posts

Saturday, 25 April 2026

Hapus file di folder dengan aman

 

Oke Guru, kalau memang mau kosongkan total folder /var/backup, kita lakukan tapi tetap aman (tidak salah folder) 👇


⚠️ PASTIKAN dulu posisi

Jangan sampai salah hapus 😄

pwd

Harus keluar:

/var/backup

✅ Cara paling aman (disarankan)

rm -i *

👉 Akan tanya satu per satu:

  • tekan y untuk hapus

  • ini aman dari salah hapus


⚡ Cara cepat (langsung habis)

Kalau sudah yakin 100%:

rm -f *

👉 Semua file di folder itu langsung hilang


🔥 Kalau ada folder (jarang tapi jaga-jaga)

rm -rf *

🔍 Cek hasil

ls -lh

Harus jadi:

total 0

🎯 Saran penting dari saya

Sebelum hapus total, minimal pastikan sudah ada backup baru di Aspire (yang tadi Guru buat):

  • db-2026-04-25.sql ✅

  • moodle-code-2026-04-25.tar.gz ✅

  • moodledata-2026-04-25.tar.gz ✅

👉 Jadi kalau ada apa-apa masih aman


🚀 Rekomendasi paling pas untuk Guru

Langsung saja:

rm -f *

Kalau sudah kosong:
👉 kirim file baru ke NUC, nanti saya bantu restore full Moodle (database + code + data) sampai jalan 💪

Wednesday, 15 April 2026

Buat folde dan pindahkan file screenshot ke folder itu

mkdir -p 2026-01-screenshot

mv *2026-01* 2026-01-screenshot/ 2>/dev/null

Thursday, 5 October 2023

Install Folder Color Ubuntu 22.04

 $ sudo add-apt-repository ppa:costales/folder-color

[sudo] password for dhwan: 

Repository: 'deb https://ppa.launchpadcontent.net/costales/folder-color/ubuntu/ jammy main'

Description:

Change a folder color used in Nautilus, Nemo & Caja File Browsers, then you can get a better visual layout

More info: https://launchpad.net/~costales/+archive/ubuntu/folder-color

Adding repository.

Press [ENTER] to continue or Ctrl-c to cancel.

Adding deb entry to /etc/apt/sources.list.d/costales-ubuntu-folder-color-jammy.list

Adding disabled deb-src entry to /etc/apt/sources.list.d/costales-ubuntu-folder-color-jammy.list

Adding key to /etc/apt/trusted.gpg.d/costales-ubuntu-folder-color.gpg with fingerprint 0DD210ABE883B905B88B55E7FC14671BA89CA06C

Hit:1 https://packages.microsoft.com/repos/edge stable InRelease               

Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease                  

Hit:3 http://id.archive.ubuntu.com/ubuntu jammy InRelease                      

Get:4 http://id.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]     

Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease               

Get:6 https://ppa.launchpadcontent.net/costales/folder-color/ubuntu jammy InRelease [17,5 kB]

Hit:7 http://id.archive.ubuntu.com/ubuntu jammy-backports InRelease

Hit:8 https://ppa.launchpadcontent.net/inkscape.dev/stable/ubuntu jammy InRelease

Hit:9 https://ppa.launchpadcontent.net/kdenlive/kdenlive-stable/ubuntu jammy InRelease

Get:10 https://ppa.launchpadcontent.net/costales/folder-color/ubuntu jammy/main i386 Packages [1.152 B]

Get:11 https://ppa.launchpadcontent.net/costales/folder-color/ubuntu jammy/main amd64 Packages [1.152 B]

Get:12 https://ppa.launchpadcontent.net/costales/folder-color/ubuntu jammy/main Translation-en [340 B]

Fetched 139 kB in 8s (16,9 kB/s)                                               

Reading package lists... Done

dhwan@dhwan-A514-51K-31XM:~$ sudo apt install folder-color && nautilus -q

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following packages were automatically installed and are no longer required:

  exo-utils libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common

  libgarcon-gtk3-1-0 libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common

  libxfce4util-bin libxfce4util-common libxfce4util7 libxfconf-0-3

  linux-headers-6.2.0-31-generic linux-hwe-6.2-headers-6.2.0-31

  linux-image-6.2.0-31-generic linux-modules-6.2.0-31-generic

  linux-modules-extra-6.2.0-31-generic xfconf xul-ext-ubufox

Use 'sudo apt autoremove' to remove them.

The following additional packages will be installed:

  gir1.2-nautilus-3.0 python3-nautilus

The following NEW packages will be installed:

  folder-color gir1.2-nautilus-3.0 python3-nautilus

0 upgraded, 3 newly installed, 0 to remove and 37 not upgraded.

Need to get 1.814 kB of archives.

After this operation, 2.849 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 https://ppa.launchpadcontent.net/costales/folder-color/ubuntu jammy/main amd64 folder-color all 0.3.0 [1.789 kB]

Get:2 http://id.archive.ubuntu.com/ubuntu jammy-updates/main amd64 gir1.2-nautilus-3.0 amd64 1:42.6-0ubuntu1 [5.318 B]

Get:3 http://id.archive.ubuntu.com/ubuntu jammy/universe amd64 python3-nautilus amd64 1.2.3-3.1build1 [19,4 kB]

Fetched 1.814 kB in 11s (170 kB/s)                                             

Selecting previously unselected package gir1.2-nautilus-3.0:amd64.

(Reading database ... 343466 files and directories currently installed.)

Preparing to unpack .../gir1.2-nautilus-3.0_1%3a42.6-0ubuntu1_amd64.deb ...

Unpacking gir1.2-nautilus-3.0:amd64 (1:42.6-0ubuntu1) ...

Selecting previously unselected package python3-nautilus.

Preparing to unpack .../python3-nautilus_1.2.3-3.1build1_amd64.deb ...

Unpacking python3-nautilus (1.2.3-3.1build1) ...

Selecting previously unselected package folder-color.

Preparing to unpack .../folder-color_0.3.0_all.deb ...

Unpacking folder-color (0.3.0) ...

Setting up gir1.2-nautilus-3.0:amd64 (1:42.6-0ubuntu1) ...

Setting up python3-nautilus (1.2.3-3.1build1) ...

Setting up folder-color (0.3.0) ...

gtk-update-icon-cache: Cache file created successfully.

gtk-update-icon-cache: Cache file created successfully.

Processing triggers for hicolor-icon-theme (0.17-2) ...