Probleme mit ls und df -rwxr-xr-x 1 root root 28584 è¢ýÿÿ¶ /bin/df
Hallo Liste, Scheinbar ist jemand auf der Machine gewesen oder es ist ein grundsätzliches Problem: ls zeigt folgendes: staudt@mail:~ > ls -l /bin/df -rwxr-xr-x 1 root root 28584 è¢ýÿÿ¶ /bin/df staudt@mail:~ > ls -l /bin/ls -rwxr-xr-x 1 root root 46568 è¢ýÿÿ¶ /bin/ls auf einer Machine habe mit which finde ich kein ls which ls gibt nicht aus. Dann habe ich auf der /usr/bin/which in whichPAT umbenannt. dann whichPAT ls gib /bin/ls aus ist ja richtig! Was könnt Ihr mir empfehlen. Vielen Danke -- Mit freundlichen Grüßen Patrice Staudt
Hallo, * Am 18.06.2002 postete Staudt Patrice:
Hallo Liste,
Scheinbar ist jemand auf der Machine gewesen oder es ist ein grundsätzliches Problem: ls zeigt folgendes: staudt@mail:~ > ls -l /bin/df -rwxr-xr-x 1 root root 28584 è¢ýÿÿ¶ /bin/df staudt@mail:~ > ls -l /bin/ls -rwxr-xr-x 1 root root 46568 è¢ýÿÿ¶ /bin/ls
auf einer Machine habe mit which finde ich kein ls which ls gibt nicht aus. Dann habe ich auf der /usr/bin/which in whichPAT umbenannt. dann whichPAT ls gib /bin/ls aus ist ja richtig! Was könnt Ihr mir empfehlen.
# rpm -qf /bin/ls fileutils-4.0.35-42 Möglicherweise mal das Paket neu installieren. Bei which ist es nicht ganz so leicht: piii-nb:/ # rpm -qf /usr/bin/which base-2001.5.9-4 IIRC kann man die Basispakete nicht erneuern, wenn das System am laufen ist. Vielleicht kennt da der eine oder andere eine Lösung. Beim Update des Systems gibt es ja auch einen Weg. Eventuell auch mal prüfen, ob ein alias für which vorhanden ist. -- Gruß Alex -- P.S. Was ist das? TOFU? Nein. Quoting oben, Text mitte, Muell unten. QOTMMU. Klingt scheusslich :-) [Florian in suse-talk]
Hallo Leute, Am Dienstag, 18. Juni 2002 08:59 schrieb Staudt Patrice:
ls zeigt folgendes: staudt@mail:~ > ls -l /bin/df -rwxr-xr-x 1 root root 28584 è¢ýÿÿ¶ /bin/df staudt@mail:~ > ls -l /bin/ls -rwxr-xr-x 1 root root 46568 è¢ýÿÿ¶ /bin/ls
auf einer Machine habe mit which finde ich kein ls which ls gibt nicht aus.
Klar. # type which which is aliased to `type -p' Und type -p ignoriert Aliase und sonstige Besonderheiten (z. B. named pipes) ach so: # type type type is a shell builtin type [-atp] name [name ...] With no options, indicate how each name would be interpreted if used as a command name. If the -t option is used, type prints a string which is one of alias, keyword, function, builtin, or file if name is an alias, shell reserved word, function, builtin, or disk file, respectively. If the name is not found, then nothing is printed, and an exit status of false is returned. If the -p option is used, type either returns the name of the disk file that would be executed if name were specified as a command name, or nothing if ``type -t name'' would not return file. /usr/bin/which macht (fast) das gleiche, fühlt sich aber durch ein einfaches which nicht angesprochen, da Aliase vor dem $PATH durchsucht werden.
Dann habe ich auf der /usr/bin/which in whichPAT umbenannt. dann whichPAT ls gib /bin/ls aus ist ja richtig! Was könnt Ihr mir empfehlen.
/usr/bin/which ls Es gibt aber auch einen Alias zu ls: ls is aliased to `ls $LS_OPTIONS' Dieser Alias ist auch der Grund, warum das alias-which nichts ausgibt. Das Problem mit der unleserlichen Ausgabe des Dateidatums von ls kann ich Dir leider nicht erklären, sondern nur ein wenig im Nebel stochern. Probiere mal /bin/ls /bin/df Wenn das läuft, solltest Du Dir mal $LS_OPTIONS ansehen ;-) Gruß Christian Boltz, der vorher auch nicht wusste, dass which ein Alias auf type -p ist ;-) -- Registrierter Linux-Nutzer #239431 Linux - life is too short for reboots.
participants (3)
-
Alex Klein
-
Christian Boltz
-
Staudt Patrice