La commande 'lscore' permet d'afficher les paramétrages de génération des fichiers 'core' en cas d'erreur de programme.

La commande se lance avec ou sans option.

Exemples :

# lscore 

compression: off
path specification: off
corefile location: not set
naming specification: off

# lscore -d 

compression: off
path specification: off
corefile location: not set
naming specification: off

 

La documentation officielle au moment de l'article pour la V7.1 est donnée ci-dessous.

lscore Command

Purpose

Views the current core settings.

Syntax

lscore [ -R registry ] [ username | -d ]

Description

The lscore command will be the user interface to view the current core settings. It will have the following usage:

lscore [-R registry] [username|-d]
As with chcore, the -d flag will show the default values. Viewing settings for another user is a privileged operation; however, any user may view the default values.

Flags
Item
Description
-d
Changes the default setting for the system.
-R registry
Specifies the loadable I&A module.

Security

May only be run by root or another user with system authority.

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command
Database in AIX Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples
1 To list the current settings for root, type:

lscore root
The output will look like:

compression: on
path specification: default
corefile location: default
naming specification: off
2 To list the default settings for the system, type:

lscore -d
The output will look like:

compression: off
path specification: on
corefile location: /corefiles
naming specification: off

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone