[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Suivre les liens symboliques



hello,

On Mon, Oct 14, 2024 at 07:10:23PM +0200, Pierre ESTREM wrote:
> C'est bien "readlink -f" qui fait le job !

* j'aurais utilisé realpath mais je vois que readlink est aussi présent
dans busybox.
* sous zsh, tu as le modifier :A qui canonise de la même manière

en zsh donc:

	$ ls -l =vim  /etc/alternatives/vim =vim(:A)
	lrwxrwxrwx 1 root root      21 May  4  2023 /usr/bin/vim -> /etc/alternatives/vim
	lrwxrwxrwx 1 root root      18 May  4  2023 /etc/alternatives/vim -> /usr/bin/vim.basic
	-rwxr-xr-x 1 root root 3646968 May  4  2023 /usr/bin/vim.basic

et avec realpath

	$ realpath $(which vim)  /etc/alternatives/vim
	/usr/bin/vim.basic
	/usr/bin/vim.basic

hth


-- 
Marc Chantreux
Pôle CESAR (Calcul et services avancés à la recherche)
Université de Strasbourg
14 rue René Descartes,
BP 80010, 67084 STRASBOURG CEDEX
03.68.85.60.79


Reply to: