Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: 12/28/2007 (mandriva - 01/05/08)

Section: 1 (Commandes utilisateur)


abspath - return the absolute path of a file or directory


abspath [options]... [path]...


Return a normalized absolutized version of the pathnames. If no arguments are passed on the command line, the standard input is used.


-r, --real-path

eliminate the symbolic links encoutered in the path


show program's version number and exit

-h, --help

show this help message and exit


The following example is ran in /etc. The path returned is the obsolute path of the file

 $ abspath passwd

An example with an absolute path. The path is only simplified

 $ abspath /etc///./../mnt/

The --real-path eliminate the symbolic links in the path. The next examples are ran in /etc

 $ abspath ../usr/sbin/sendmail
 $ abspath ../usr/sbin/sendmail --real-path


Coded in python for prototyping purpose. Should be recoded in C. Nothing else known at this time.


Written by Gaëtan Lehmann, <>


Main web site:

Darcs web:


Copyright (C) 2006 Gaëtan Lehmann. Free use of this software is granted under the terms of the GNU General Public License (GPL).
<Touns> hooo yes j'avais pas vu l'options pour retirer la voix dans xmms
<Touns> ça deforme les chansons mais je pense qu'on peut limite ecouter florent pagny avec ça lol
-- Touns in "la technologie va changer ma vie" --