Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/01/2023, à 00:20

Boulou92

soucis avec catfish après avoir utilisé rmlint [Résolu]

Bonsoir,
Après avoir installé rmlint, j'ai des soucis avec catfish qui ne trouve pas les fichiers. Je suis utilisateur mais pas doué pour l'informatique.
Ma machine:

marc@marc-System-Product-Name:~/Bureau$ inxi -Fz
System:
  Kernel: 5.15.0-58-generic x86_64 bits: 64 Desktop: Xfce 4.16.0
    Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Machine:
  Type: Desktop Mobo: ASUSTeK model: P5Q SE2 v: Rev X.0x
    serial: <superuser required> BIOS: American Megatrends v: 0801
    date: 03/31/2010
CPU:
  Info: quad core model: Intel Core2 Quad Q9400 bits: 64 type: MCP cache:
    L2: 6 MiB
  Speed (MHz): avg: 2007 min/max: 2003/2670 cores: 1: 2007 2: 2007 3: 2007
    4: 2007

Merci d'avance et bonne année 2023 à vous tous

Boulou
J'ai désinstallé mlint, j'ai fait tout ce que vous m'avez demandé; j'utilise ControlF qui fonctionne . Merci à vous tous.

Dernière modification par Boulou92 (Le 06/03/2023, à 20:10)

Hors ligne

#2 Le 26/01/2023, à 21:41

kamaris

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Ce ne serait pas la même chose que ça : https://forum.ubuntu-fr.org/viewtopic.php?id=2073891 ?

Hors ligne

#3 Le 27/01/2023, à 01:01

Boulou92

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Bonsoir Kamaris,
Non, de mon coté  ces codes ne fonctionnent pas,  Locate  fonctionne mais bon c'est plus clair en mode graphique  marc@marc-System-Product-Name:~/Documents/Documents LAST$ sudo updatedb.

[sudo] Mot de passe de marc : 
sudo: updatedb. : commande introuvable
marc@marc-System-Product-Name:~/Documents/Documents LAST$

La recherche est longue , il me donne quand je fait une recherche "ordonnance Kiné"

Bash history 

sudoapt update
sudo apt update
apt install
apt list --upgradable
sudo apt update
sudo apt install
sudo apt-get upgrade
sudo apt autoclean
sudo apt clean
xo
xorg
super p
dpkg -l | grep -v ^ii
ls -l /var/crash
sudo apt --fix-broken install
ls -l /var/crash
echo; lsb_release -d ; echo -e "\nNoyau courant : $(uname -mr)"; echo $XDG_CURRENT_DESKTOP ; echo; ls -lt /usr/share/xsessions | awk '{print $6,$7,$8,$9}'software-propertiez-gtk
sudo ubuntu-drivers autoinstall
apt update
find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;
ls -l /var/crash
sudo apt update
for r in /var/crash/*.crash ; do if test ! -f "${r/.crash/.uploaded}" -a -f "$r" ; then if test "${r:$((-10)):$((4))}" == "$(id -u)" ; then /usr/share/apport/apport-gtk -c "$r" ; else pkexec /usr/share/apport/apport-gtk -c "$r" ; fi ; fi ; donels -l /var/crash
sudo apt update
sudo sed -i 's/^deb cdrom/# deb cdrom/' /etc/apt/sources.list
sudo apt update
for r in /var/crash/*.crash ; do if test ! -f "${r/.crash/.uploaded}" -a -f "$r" ; then if test "${r:$((-10)):$((4))}" == "$(id -u)" ; then /usr/share/apport/apport-gtk -c "$r" ; else pkexec /usr/share/apport/apport-gtk -c "$r" ; fi ; fi ; done
sudo apt update
for r in /var/crash/*.crash ; do if test ! -f "${r/.crash/.uploaded}" -a -f "$r" ; then if test "${r:$((-10)):$((4))}" == "$(id -u)" ; then /usr/share/apport/apport-gtk -c "$r" ; else pkexec /usr/share/apport/apport-gtk -c "$r" ; fi ; fi ; done
ls -l /var/crash
sudo apt update
sudo apt upgrade
sudo apt clean
sudo apt autoclean
clavier
keyboard
localectl set-x11-keymap fr
for r in /var/crash/*.crash ; do if test ! -f "${r/.crash/.uploaded}" -a -f "$r" ; then if test "${r:$((-10)):$((4))}" == "$(id -u)" ; then /usr/share/apport/apport-gtk -c "$r" ; else pkexec /usr/share/apport/apport-gtk -c "$r" ; fi ; fi ; done
ls -l /var/crash
sol
sudo apt install aisleriot
sudo -v && wget -nv -O- [url]https://download.calibre-ebook.com/linux-installer.sh[/url] | sudo sh /dev/stdin
calibre
sudo apt install calibre
ade
wine
sudo apt install wine 
sudo apt install ADE
/home/marc/Téléchargements/ADE_4.5_Installer.exe
/home/marc/Téléchargements/ADEAutoUpdater_450.exe
ADE
apt install ADE
sudo apt-get install winetricks 
winetricks dotnet46
Ben, un bête
sudo apt-get --purge remove wine playonlinuxsudo apt-get --purge remove wine playonlinux
sudo apt-get remove --purge wine-*
sudo apt autoremove
sudo apt clean
rm-rf ~/.Wine 
Sudo apt-get purge winetricks.
sudo apt-get purge winetricks
sudo apt-get purge wine winetricks
sudo apt-get autoremove
Sudo apt-get purge wine winetricks
sudo apt install wine64
wine ADE_4.5_Installer.exe 
winetricks dotnet40
sudo apt install winetricks
wineboot -u
export WINEPREFIX=~/.wineadobe
export WINEARCH="win32"
sudo apt install wine
sudo apt-get --purge remove wine playonlinux
rm-rf~/.wine
sudo apt-get remove wine*–purge 
sudo apt-get remove wine
sudo apt autoremove
sudo apt-get remove wine*-purge
sudo apt clean
apt-get remove
o
O
Yes
apt remove winetricks
gksudo thunar
sudo apt-get clean
Jx@54105
man apt-get
sudo apt-get autoremove
sudo apt-get purge
rm
rm-help
rm--help
m
sudo apt get remove wine
sudo apt-get remove wine
sudo apt-get autoremove
sudo apt-get clean
sudo apt-mark auto $(apt-mark showmanual | egrep 'linux-.*[0-9]' | grep -v "hwe")
sudo apt-get autoremove --purge
sudo apt autoclean
sudo apt clean
sudo apt autoremove
echo; dpkg -l | grep -Ei "linux-(g|h|i|lo|si|t)" | grep -v ^rc | sort -k3 | tr -s " " | cut -d" " -s -f1,2,3,4 | column -s" " -t ; echo ; uname -mr
df -Th
sudo apt update
apt list --upgradable
start
closze
close
sudo apt install
start
exit
close
restart
restartd
exit
top
apt list --upgradable
light-locker
exit
sudo apt install speedtest-cli
speedtest
ethtool eth0 
Sudo ethtool eth0 | grep Speed
cat /sys/class/net/<interface>/speed
ethtool
ifconfig
sudo apt install net-tools
ifconfig
catfish
catfish %f.
catfish%
catfish
catfish
fishcat
fischcat
fishcat
catfish
CATFISH
CATFISH
catfish
catfish
sudo apt install libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-runtime-serialization4.0-cil mono-mcs mono-complete keepass2
sudo apt remove keepass2
sudo apt autoremove
catfish
catfish
Catfish
catfish
apt list --upgradable
uit
exit
ok
apt quit
exit
catfish
% sudo snap install vlc
catfish
HFSEexplorer
HFSE
catfish
catfish
CATFISH
catfish
convert fichier.pdf image.jpeg
pinta
sudo snap install pinta  # version 2.0.2
catfish
nuss
catfish
Command: gunzip linux-brprinter-installer-*.*.*-*.gz
cd downloads
rpm  -ihv  --nodeps 
sudo apt install rpm
cd Téléchargements
brscan4-0.4.11-1.x86_64
sudo bash linux-brprinter-installer-/home/marc/Téléchargements/brscan4-0.4.11-1.x86_64.rpm
bash: linux-brprinter-installer-/home/marc/Téléchargements/brscan4-0.4.11-1.
sudo apt install [200~linux-brprinter-installer-/home/marc/Téléchargements/brscan4-0.4.11-1.
cd telechargements
brscan4-0.4.11-1.x86_64
gunzip linux-[200~brscan4-0.4.11-1.x86_64
~
bash: cd:brscan4-0.4.11-1.x86_64.gz
sudo apt install brscan4-0.4.11-1.x86_64.gz
sudo apt install brscan4-0.4.11-1.x86_64.rpm
sudo apt autoclean
sudo apt clean
sudo apt autoremove
apt list ~c
sudo apt purge ~c
wget [url]https://bitbucket.org/demonipuch/brprinter-installer/get/master.zip[/url]
unzip master.zip
cd demonipuch-brprinter-installer-*
chmod +x brprinter-installer
sudo bash brprinter-installer
skanlite
sudo apt install skanlite
catfish
ca&tfish
catfish
CATFISH
FISHCAT
CATcatfish
catfish
dpkg -i --force-all 
dpkg
dpkg -i --force-all 
simple-scan
sudo apt install simple-scan
simple-scan
cd ~/Download
catfish
algodystrophie
catfish
CATFISH
sudo apt install curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg [url]https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg[/url]
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] [url]https://brave-browser-apt-release.s3.brave.com/[/url] stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
catfish
gnome-video-arcade
catfish
cimetiere
cayfish
catfish
sudo apt installrfind
sudo apt clean
Jx@54105
sudo apt auto clean
sudo apt clean
sudo apt autoclean
sudo apt autoremove
catfish
mkdir -p ~/Downloads/fslint
cd ~/Downloads/fslint
wget [url]http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb[/url]
wget [url]http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-6_amd64.deb[/url]
wget [url]http://old-releases.ubuntu.com/ubuntu/pool/universe/f/fslint/fslint_2.46-1_all.deb[/url]
sudo apt-get install ./*.deb
fslint-gui
apt 
apt remove
apt clean
apt autoremove
O
sudo apt-get remove fslint
deborphan-a
deborphan -a
sudo apt install deborphan
deborphan -a
sudo apt-get install gtkorphan
sudo apt-get purge $(deborphan)
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
clean
fdupes/home/Marc/mes documents last
fdupes/[200~/home/marc/Documents/Documents LASTfdupes/fdupes/home/marc/Documents/Documents LAST
fdupes/home/marc/Documents/Documents LAST
fslint
sudo apt install fslint
sudo apt delete
sudo apt-get install fdupes
$ fdupes//home/marc/Documents/Documents LAST/
[200~/home/marc/Documents/Documents LAST/~$fdupes//home/marc/Documents/Documents LAST/
$ fdupes/home/marc/documents/documents LAST
fdupes/home/marc/Documents/Documents LAST
fdupes/home/marc/documents
catfish
rmlint --gui
inxi -Fz
lshw
rmlint
/media/marc/FreeAgent Drive/rmlint
media/marc/FreeAgent Drive/rmlint
Jx@54105
rmlint
$ rmlint -T "df,dd" 
rmlint
/media/marc/FreeAgent Drive/rmlint
apt-get clean
apt- get remove
sudo apt-get clean
sudo apt autoclean
sudo apt clean
sudo apt autoremove
sudo apt rm rmlint
sudo apt purge ~c
snap list --all
snap list --all | awk '/désactivé|disabled/{print $1, $3}' | while read snapname revision; do sudo snap remove "$snapname" --revision="$revision"; done
$ cd openai-quickstart-node
$ cd openai-quickstart-node
/var/lib/packagekit/prepared-update
sudo apt update
apt list --upgradable
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove
sudo apt autoclean
catfish
catfish
sudo apt remove catfish
sudo apt purge catfish
catfish
sudo apt install catfish
catfish
sudo apt remove shredder duplicate finder
sudo apt remove rmlint
sudo apt purge rmlint
sudo apt autoremove
catfish
sudo lshow
sudo lshw
uname
uname --m
uname -a
lshw -short
catfish
sudo apt update
apt list --upgradable
apt list upgrade
sudo apt update
sudo apt upgrade
locate ordonnance
locate ordonnance kiné
locate ordonnance 2023
find .pdf
find pdf
find ordonnance joele
locate ordonnance joele
locate ordonnance kiné joele
locate ordonnance
sudo updatedb
~sudo updatedb
/var/lib/mlocate/mlocate.db
/var/lib/mlocate/mlocate.d
sudo updatedb.
sudo udatedb
sudo updatedb
catfish
locate Abensour
locate joele
/var/lib/mlocate/
sudo updatedb.
catfish

Voilà pour le moment
Merci
A plus tard
Boulou

Dernière modification par Ayral (Le 27/01/2023, à 01:22)

Hors ligne

#4 Le 27/01/2023, à 01:28

Ayral

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Modération : veuillez utiliser les balises code pour les commandes et les retours de commande.
Voir ici.


Pour mettre les retours de commande entre deux balises code, les explications sont là : https://forum.ubuntu-fr.org/viewtopic.php?id=1614731
Blog d'un retraité
Site de graphisme du fiston Loïc
Ubuntu 22.04 LTS sur un Thinkpad W540

Hors ligne

#5 Le 27/01/2023, à 09:37

iznobe

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Bonjour rmlint , efface des fichiers corrompus etc , mais il efface probablement des caches , en l' occurence certainement celui de catfish ? qui ne retrouve alors plus ces petits ...

Bref utilisé rmlint , c ' est dangereux et inutile , linux c' est different de windows : y a pas besoin d ' utiliser de tels logiciels generalement . sauf si on veut evidemment creer des bugs ... et planter son systeme si on ne s ' y entend pas extremement bien .

Dernière modification par iznobe (Le 27/01/2023, à 09:38)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#6 Le 27/01/2023, à 17:15

Boulou92

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Merci pour les information Iznobe.
Bonne soirée
Boulou

Hors ligne

#7 Le 27/01/2023, à 20:34

kamaris

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Boulou92 a écrit :

Bonsoir Kamaris,
Non, de mon coté  ces codes ne fonctionnent pas,  Locate  fonctionne mais bon c'est plus clair en mode graphique

marc@marc-System-Product-Name:~/Documents/Documents LAST$ sudo updatedb.
[sudo] Mot de passe de marc : 
sudo: updatedb. : commande introuvable
marc@marc-System-Product-Name:~/Documents/Documents LAST$

La commande est

sudo updatedb

(sans le point à la fin)

Si ça ne change rien il y aussi ça: https://forum.ubuntu-fr.org/viewtopic.p … #p22614697

Hors ligne

#8 Le 28/01/2023, à 16:17

Boulou92

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Bonjour Kamaris, la commande

sudo updatedb

ne donne rien ainsi que la deuxième manipulation ; le résultat est ici

#!/usr/bin/env python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
#   Catfish - a versatile file searching tool
#   Copyright (C) 2007-2012 Christian Dywan <christian@twotoasts.de>
#   Copyright (C) 2012-2020 Sean Davis <bluesabre@xfce.org>
#
#   This program is free software: you can redistribute it and/or modify it
#   under the terms of the GNU General Public License version 2, as published
#   by the Free Software Foundation.
#
#   This program is distributed in the hope that it will be useful, but
#   WITHOUT ANY WARRANTY; without even the implied warranties of
#   MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
#   PURPOSE.  See the GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License along
#   with this program.  If not, see <https://www.gnu.org/licenses/>.

import os

__all__ = [
    'project_path_not_found',
    'get_data_file',
    'get_data_path',
    'get_locate_db_path',
]

# Where your project will look for your data (for instance, images and ui
# files). By default, this is ../data, relative your trunk layout
__catfish_data_directory__ = '/usr/share/catfish/'
# Location of locate.db file
__locate_db_path__ = '/var/lib/plocate/plocate.db'
__license__ = 'GPL-2+'
__version__ = '4.16.3'
__url__ = 'https://docs.xfce.org/apps/catfish/start'


class project_path_not_found(Exception):

    """Raised when we can't find the project directory."""


def get_data_file(*path_segments):
    """Get the full path to a data file.

    Returns the path to a file underneath the data directory (as defined by
    `get_data_path`). Equivalent to os.path.join(get_data_path(),
    *path_segments).
    """
    return os.path.join(get_data_path(), *path_segments)


def get_data_path():
    """Retrieve catfish data path

    This path is by default <catfish_lib_path>/../data/ in trunk
    and /usr/share/catfish in an installed version but this path
    is specified at installation time.
    """

    # Get pathname absolute or relative.
    path = os.path.join(
        os.path.dirname(__file__), __catfish_data_directory__)

    abs_data_path = os.path.abspath(path)
    if not os.path.exists(abs_data_path):
        raise project_path_not_found

    return abs_data_path


def get_locate_db_path():
    """Return the location of the locate.db file
    """
    return __locate_db_path__


def get_version():
    """Return the program version number."""
    return __version__


def get_about():
    from locale import gettext as _

    return {
        'version': __version__,
        'program_name': _('Catfish File Search'),
        'icon_name': 'org.xfce.catfish',
        'website': __url__,
        'comments': _('Catfish is a versatile file searching tool.'),
        'copyright': 'Copyright (C) 2007-2012 Christian Dywan <christian@twotoasts.de>\n'
                     'Copyright (C) 2012-2020 Sean Davis <bluesabre@xfce.org>',
        'authors': [
            'Christian Dywan <christian@twotoasts.de>',
            'Sean Davis <bluesabre@xfce.org>'],
        'artists': ['Nancy Runge <nancy@twotoasts.de>']}

Merci
A plus tard
Boulou92

Hors ligne

#9 Le 29/01/2023, à 23:13

Boulou92

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Bonsoir,
Rmlint a "pondu" ces scripts sur mon bureau; si cela vous parle...

#!/bin/sh

PROGRESS_CURR=0
PROGRESS_TOTAL=1                           

# This file was autowritten by rmlint
# rmlint was executed from: /home/marc/Bureau/
# Your command line was: rmlint

RMLINT_BINARY="/usr/bin/rmlint"

# Only use sudo if we're not root yet:
# (See: https://github.com/sahib/rmlint/issues/27://github.com/sahib/rmlint/issues/271)
SUDO_COMMAND="sudo"
if [ "$(id -u)" -eq "0" ]
then
  SUDO_COMMAND=""
fi

USER='marc'
GROUP='marc'

STAMPFILE=$(mktemp 'rmlint.XXXXXXXX.stamp')

# Set to true on -n
DO_DRY_RUN=

# Set to true on -p
DO_PARANOID_CHECK=

# Set to true on -r
DO_CLONE_READONLY=

# Set to true on -q
DO_SHOW_PROGRESS=true

# Set to true on -c
DO_DELETE_EMPTY_DIRS=

# Set to true on -k
DO_KEEP_DIR_TIMESTAMPS=

##################################
# GENERAL LINT HANDLER FUNCTIONS #
##################################

COL_RED='[0;31m'
COL_BLUE='[1;34m'
COL_GREEN='[0;32m'
COL_YELLOW='[0;33m'
COL_RESET='[0m'

print_progress_prefix() {
    if [ -n "$DO_SHOW_PROGRESS" ]; then
        PROGRESS_PERC=0
        if [ $((PROGRESS_TOTAL)) -gt 0 ]; then
            PROGRESS_PERC=$((PROGRESS_CURR * 100 / PROGRESS_TOTAL))
        fi
        printf '%s[%3d%%]%s ' "${COL_BLUE}" "$PROGRESS_PERC" "${COL_RESET}"
        if [ $# -eq "1" ]; then
            PROGRESS_CURR=$((PROGRESS_CURR+$1))
        else
            PROGRESS_CURR=$((PROGRESS_CURR+1))
        fi
    fi
}

handle_emptyfile() {
    print_progress_prefix
    echo "${COL_GREEN}Deleting empty file:${COL_RESET} $1"
    if [ -z "$DO_DRY_RUN" ]; then
        rm -f "$1"
    fi
}

handle_emptydir() {
    print_progress_prefix
    echo "${COL_GREEN}Deleting empty directory: ${COL_RESET}$1"
    if [ -z "$DO_DRY_RUN" ]; then
        rmdir "$1"
    fi
}

handle_bad_symlink() {
    print_progress_prefix
    echo "${COL_GREEN} Deleting symlink pointing nowhere: ${COL_RESET}$1"
    if [ -z "$DO_DRY_RUN" ]; then
        rm -f "$1"
    fi
}

handle_unstripped_binary() {
    print_progress_prefix
    echo "${COL_GREEN} Stripping debug symbols of: ${COL_RESET}$1"
    if [ -z "$DO_DRY_RUN" ]; then
        strip -s "$1"
    fi
}

handle_bad_user_id() {
    print_progress_prefix
    echo "${COL_GREEN}chown ${USER}${COL_RESET} $1"
    if [ -z "$DO_DRY_RUN" ]; then
        chown "$USER" "$1"
    fi
}

handle_bad_group_id() {
    print_progress_prefix
    echo "${COL_GREEN}chgrp ${GROUP}${COL_RESET} $1"
    if [ -z "$DO_DRY_RUN" ]; then
        chgrp "$GROUP" "$1"
    fi
}

handle_bad_user_and_group_id() {
    print_progress_prefix
    echo "${COL_GREEN}chown ${USER}:${GROUP}${COL_RESET} $1"
    if [ -z "$DO_DRY_RUN" ]; then
        chown "$USER:$GROUP" "$1"
    fi
}

###############################
# DUPLICATE HANDLER FUNCTIONS #
###############################

check_for_equality() {
    if [ -f "$1" ]; then
        # Use the more lightweight builtin `cmp` for regular files:
        cmp -s "$1" "$2"
        echo $?
    else
        # Fallback to `rmlint --equal` for directories:
        "$RMLINT_BINARY" -p --equal  --no-followlinks "$1" "$2"
        echo $?
    fi
}

original_check() {
    if [ ! -e "$2" ]; then
        echo "${COL_RED}^^^^^^ Error: original has disappeared - cancelling.....${COL_RESET}"
        return 1
    fi

    if [ ! -e "$1" ]; then
        echo "${COL_RED}^^^^^^ Error: duplicate has disappeared - cancelling.....${COL_RESET}"
        return 1
    fi

    # Check they are not the exact same file (hardlinks allowed):
    if [ "$1" = "$2" ]; then
        echo "${COL_RED}^^^^^^ Error: original and duplicate point to the *same* path - cancelling.....${COL_RESET}"
        return 1
    fi

    # Do double-check if requested:
    if [ -z "$DO_PARANOID_CHECK" ]; then
        return 0
    else
        if [ "$(check_for_equality "$1" "$2")" -ne "0" ]; then
            echo "${COL_RED}^^^^^^ Error: files no longer identical - cancelling.....${COL_RESET}"
			return 1
        fi
    fi
}

cp_symlink() {
    print_progress_prefix
    echo "${COL_YELLOW}Symlinking to original: ${COL_RESET}$1"
    if original_check "$1" "$2"; then
        if [ -z "$DO_DRY_RUN" ]; then
            # replace duplicate with symlink
            rm -rf "$1"
            ln -s "$2" "$1"
            # make the symlink's mtime the same as the original
            touch -mr "$2" -h "$1"
        fi
    fi
}

cp_hardlink() {
    if [ -d "$1" ]; then
        # for duplicate dir's, can't hardlink so use symlink
        cp_symlink "$@"
        return $?
    fi
    print_progress_prefix
    echo "${COL_YELLOW}Hardlinking to original: ${COL_RESET}$1"
    if original_check "$1" "$2"; then
        if [ -z "$DO_DRY_RUN" ]; then
            # replace duplicate with hardlink
            rm -rf "$1"
            ln "$2" "$1"
        fi
    fi
}

cp_reflink() {
    if [ -d "$1" ]; then
        # for duplicate dir's, can't clone so use symlink
        cp_symlink "$@"
        return $?
    fi
    print_progress_prefix
    # reflink $1 to $2's data, preserving $1's  mtime
    echo "${COL_YELLOW}Reflinking to original: ${COL_RESET}$1"
    if original_check "$1" "$2"; then
        if [ -z "$DO_DRY_RUN" ]; then
            touch -mr "$1" "$0"
            if [ -d "$1" ]; then
                rm -rf "$1"
            fi
            cp --archive --reflink=always "$2" "$1"
            touch -mr "$0" "$1"
        fi
    fi
}

clone() {
    print_progress_prefix
    # clone $1 from $2's data
    # note: no original_check() call because rmlint --dedupe takes care of this
    echo "${COL_YELLOW}Cloning to: ${COL_RESET}$1"
    if [ -z "$DO_DRY_RUN" ]; then
        if [ -n "$DO_CLONE_READONLY" ]; then
            $SUDO_COMMAND $RMLINT_BINARY --dedupe  --dedupe-readonly "$2" "$1"
        else
            $RMLINT_BINARY --dedupe  "$2" "$1"
        fi
    fi
}

skip_hardlink() {
    print_progress_prefix
    echo "${COL_BLUE}Leaving as-is (already hardlinked to original): ${COL_RESET}$1"
}

skip_reflink() {
    print_progress_prefix
    echo "${COL_BLUE}Leaving as-is (already reflinked to original): ${COL_RESET}$1"
}

user_command() {
    print_progress_prefix

    echo "${COL_YELLOW}Executing user command: ${COL_RESET}$1"
    if [ -z "$DO_DRY_RUN" ]; then
        # You can define this function to do what you want:
        echo 'no user command defined.'
    fi
}

remove_cmd() {
    print_progress_prefix
    echo "${COL_YELLOW}Deleting: ${COL_RESET}$1"
    if original_check "$1" "$2"; then
        if [ -z "$DO_DRY_RUN" ]; then
            if [ ! -z "$DO_KEEP_DIR_TIMESTAMPS" ]; then
                touch -r "$(dirname $1)" "$STAMPFILE"
            fi

            rm -rf "$1"

            if [ ! -z "$DO_KEEP_DIR_TIMESTAMPS" ]; then
                # Swap back old directory timestamp:
                touch -r "$STAMPFILE" "$(dirname $1)"
                rm "$STAMPFILE"
            fi

            if [ ! -z "$DO_DELETE_EMPTY_DIRS" ]; then
                DIR=$(dirname "$1")
                while [ ! "$(ls -A "$DIR")" ]; do
                    print_progress_prefix 0
                    echo "${COL_GREEN}Deleting resulting empty dir: ${COL_RESET}$DIR"
                    rmdir "$DIR"
                    DIR=$(dirname "$DIR")
                done
            fi
        fi
    fi
}

original_cmd() {
    print_progress_prefix
    echo "${COL_GREEN}Keeping:  ${COL_RESET}$1"
}

##################
# OPTION PARSING #
##################

ask() {
    cat << EOF

This script will delete certain files rmlint found.
It is highly advisable to view the script first!

Rmlint was executed in the following way:

   $ rmlint

Execute this script with -d to disable this informational message.
Type any string to continue; CTRL-C, Enter or CTRL-D to abort immediately
EOF
    read -r eof_check
    if [ -z "$eof_check" ]
    then
        # Count Ctrl-D and Enter as aborted too.
        echo "${COL_RED}Aborted on behalf of the user.${COL_RESET}"
        exit 1;
    fi
}

usage() {
    cat << EOF
usage: $0 OPTIONS

OPTIONS:

  -h   Show this message.
  -d   Do not ask before running.
  -x   Keep rmlint.sh; do not autodelete it.
  -p   Recheck that files are still identical before removing duplicates.
  -r   Allow deduplication of files on read-only btrfs snapshots. (requires sudo)
  -n   Do not perform any modifications, just print what would be done. (implies -d and -x)
  -c   Clean up empty directories while deleting duplicates.
  -q   Do not show progress.
  -k   Keep the timestamp of directories when removing duplicates.
EOF
}

DO_REMOVE=
DO_ASK=

while getopts "dhxnrpqck" OPTION
do
  case $OPTION in
     h)
       usage
       exit 0
       ;;
     d)
       DO_ASK=false
       ;;
     x)
       DO_REMOVE=false
       ;;
     n)
       DO_DRY_RUN=true
       DO_REMOVE=false
       DO_ASK=false
       ;;
     r)
       DO_CLONE_READONLY=true
       ;;
     p)
       DO_PARANOID_CHECK=true
       ;;
     c)
       DO_DELETE_EMPTY_DIRS=true
       ;;
     q)
       DO_SHOW_PROGRESS=
       ;;
     k)
       DO_KEEP_DIR_TIMESTAMPS=true
       ;;
     *)
       usage
       exit 1
  esac
done

if [ -z $DO_REMOVE ]
then
    echo "#${COL_YELLOW} ///${COL_RESET}This script will be deleted after it runs${COL_YELLOW}///${COL_RESET}"
fi

if [ -z $DO_ASK ]
then
  usage
  ask
fi

if [ ! -z $DO_DRY_RUN  ]
then
    echo "#${COL_YELLOW} ////////////////////////////////////////////////////////////${COL_RESET}"
    echo "#${COL_YELLOW} /// ${COL_RESET} This is only a dry run; nothing will be modified! ${COL_YELLOW}///${COL_RESET}"
    echo "#${COL_YELLOW} ////////////////////////////////////////////////////////////${COL_RESET}"
fi

######### START OF AUTOGENERATED OUTPUT #########

handle_emptyfile '/home/marc/Bureau/La Baule et environs.tmp' # empty file
                                               
                                               
                                               
######### END OF AUTOGENERATED OUTPUT #########
                                               
if [ $PROGRESS_CURR -le $PROGRESS_TOTAL ]; then
    print_progress_prefix                      
    echo "${COL_BLUE}Done!${COL_RESET}"      
fi                                             
                                               
if [ -z $DO_REMOVE ] && [ -z $DO_DRY_RUN ]     
then                                           
  echo "Deleting script " "$0"             
  rm -f '/home/marc/Bureau/rmlint.sh';                                     
fi                                             

Il en a sorti d'autres que j'ai effacé...
Merci
Bonne soirée
Boulou92

Dernière modification par Boulou92 (Le 29/01/2023, à 23:14)

Hors ligne

#10 Le 21/02/2023, à 16:58

phiphiloo

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

Boulou92 a écrit :

Bonjour Kamaris, la commande

sudo updatedb

ne donne rien (...)

hello Boulou,

essaye avec

sudo updatedb -v

## l'option -v signifie verbeux/bavard

Après avoir installé rmlint, j'ai des soucis avec catfish qui ne trouve pas les fichiers

pourquoi ne pas tenté de voir ce qu'il se passe, en désinstallant rmlint??


Clevo P950ER - i7-8750H CPU @ 2,20/4,1 Ghz - 64 Go DDR4 RAM Corsair Vengeance - Cannon Lake PCH / HM470 Chipset - UHD Graphics 630 (CoffeeLake-H GT2) / GeForce GTX 1060 Mobile (GP106M) - Realtek RTL8111/8168/8411 / Wi-Fi 6 AX210 / AX210 Bluetooth - Crucial P1 NVMe/PCIe SSD 1 To / Samsung SSD 870 SATA 4 To - Realtek ALC1220 / HDA Intel PCH / HDA nVidia - Xubuntu 22.04 / Kernel 5.15.0-69-generic

Hors ligne

#11 Le 06/03/2023, à 19:49

Boulou92

Re : soucis avec catfish après avoir utilisé rmlint [Résolu]

La recherche avec Control F  fonctionne très bien. J'avais supprimé mlint. Merci à vous tous

Hors ligne