RHEL8 Perlのパスとバージョンを確認する方法

環境
RHEL8.6

操作方法
1.Perlのパスを確認する

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ whereis perl
perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz
$ whereis perl perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz
$ whereis perl
perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz

2.Perlのバージョンを確認する
Perlのバージョンを確認するには、perlに「-v」もしくは、「-version」を付けて実行します。
$perl -v
結果

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-thread-multi
(with 52 registered patches, see perl -V for more detail)
Copyright 1987-2021, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-thread-multi (with 52 registered patches, see perl -V for more detail) Copyright 1987-2021, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-thread-multi
(with 52 registered patches, see perl -V for more detail)

Copyright 1987-2021, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

 

AlmaLinux

Posted by arkgame