Inspect diagnostics from applications and session scripts started in a traditional X session.
Which file is representative?
~/.xsession-errors may contain user-session diagnostics in traditional X environments, depending on the display manager and distribution.
Detailed explanation
~/.XauthorityIncorrect. ~/.Xauthority stores X11 authentication cookies.
Incorrect. ~/.Xauthority stores X11 authentication cookies.
~/.xsession-errorsCorrect. Traditional X sessions may write standard error to ~/.xsession-errors.
Correct. Traditional X sessions may write standard error to ~/.xsession-errors.
~/.bash_logoutIncorrect. ~/.bash_logout contains login-shell exit commands.
Incorrect. ~/.bash_logout contains login-shell exit commands.
/etc/X11/xorg.confIncorrect. /etc/X11/xorg.conf is system configuration, not a user session error log.
Incorrect. /etc/X11/xorg.conf is system configuration, not a user session error log.
Try it yourself
An example you can run in a temporary verification environment.
test -r "$HOME/.xsession-errors" && tail -n 5 "$HOME/.xsession-errors" || printf '%s\n' 'not present in this session'Expected result
存在すれば末尾5行、なければ不在案内Key points
- User-level diagnostics
- Not authentication data
- May be absent
Notes
- Environment: Linuxデスクトップ / 読取のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.