Mencari folder kosong: Perbedaan revisi
Dari IGNwiki
(←Membuat halaman berisi 'Mencari folder kosong Cari folder kosong # find /path -type d -empty Cari folder kosong dan tampilkan # find /path -type d -empty -exec ls -ld {} \; Cari folder koso…') |
|||
Baris 2: | Baris 2: | ||
Cari folder kosong | Cari folder kosong | ||
− | # find /path -type d -empty | + | # find /path -type d -empty |
Cari folder kosong dan tampilkan | Cari folder kosong dan tampilkan | ||
− | # find /path -type d -empty -exec ls -ld {} \; | + | # find /path -type d -empty -exec ls -ld {} \; |
Cari folder kosong dan simpan ke file txt | Cari folder kosong dan simpan ke file txt | ||
− | # find /path -type d -empty -exec ls -ld >> /tmp/savefiles.txt {} \; | + | # find /path -type d -empty -exec ls -ld >> /tmp/savefiles.txt {} \; |
Cari folder kosong dan hapus | Cari folder kosong dan hapus | ||
− | # find /path -type d -empty -exec rmdir {} \; | + | # find /path -type d -empty -exec rmdir {} \; |
Revisi per 5 Desember 2009 16.30
Mencari folder kosong
Cari folder kosong
# find /path -type d -empty
Cari folder kosong dan tampilkan
# find /path -type d -empty -exec ls -ld {} \;
Cari folder kosong dan simpan ke file txt
# find /path -type d -empty -exec ls -ld >> /tmp/savefiles.txt {} \;
Cari folder kosong dan hapus
# find /path -type d -empty -exec rmdir {} \;