LINUX Which log file do you check to look for issues that may be causing problem
ID: 670619 • Letter: L
Question
LINUX
Which log file do you check to look for issues that may be causing problems with the X Windows graphical desktop environment?
What is chain-loading (with reference to booting)?
Describe how you would switch between the virtual consoles provided by Fedora.
Write a command to list all files and folders in the current directory, including hidden files.
What is the shell history?
What command do you use to view the shell history?
What command would you type if you wanted the ls command to be recalled? $ history 4, 15 cd .. ,16 ls, 17 cd test, 18 history
Write a command that would display the contents of the file ICT2631 and then print the date.(4) 7. Explain why you would not include the current directory in the PATH.
In which directory would you expect to find the following?
Directories assigned to users with login accounts
Files representing access points to devices on the system
If you are in the memo directory, write a command to change to the blues directory using relative pathnames
Explanation / Answer
a.
The log file which is checked to look for issues that may be causing problems with the X Windows graphical desktop environment is /var/log/Xorg.*.log
b.
Chain Loading is used when a boot loader is loaded by another boot loader so that the boot process begins. Thus, in this process a new program replaces a currently executing program.
The boot loader is usually GRUB that boots the second boot loader.
c.
To switch between the virtual consoles provided by Fedora that is to switch from the actual installation environment to tmux, press Ctrl+Alt+F1. To go back to the main installation interface which runs in virtual console 6, press Ctrl+Alt+F6.
d.
To list all files and folders in the current directory, the command used is ls.
To display all hidden files, ls -a command is used. The -a option does not hide the entries starting with the . in the given directory or path.
e.
The shell history is a feature in unix platform through which the user can recall the earlier commands which were issued to the system and these commands can be repeated without typing them or by editing them if necessary.
f.
The command used to view the shell history is history. The complete command will be as follows:
$history | grep command-name
g.
The command which can be typed if you wanted the ls command to be recalled is $history 4
h.
A command that would display the contents of the file ICT2631 is
cat ICT2631
d1 = $(date)
echo “d1”
i.
Using the command “a.out” instead of “./a.out” in order to run programs in the current directory is possible, but the problem is that, since “.” is the first entry in the PATH and it is a publicly writable directory, it may give wrong results.
For e.g. If the current directory like “/tmp” is publicly writable and there exists a program named “/tmp/ls” which is left by any user and another user types “ls”, the shell will run “./ls” , which is the other user’s program.
j.
The directory which possess the directories assigned to the users with login account is Active Directory
k.
The directory which has the files representing access points to devices on the system is mount directory or mount point.
l.
If you are in memo directory, a command to change to the blues directory using relative path names is as follows:
cd../Music/blue
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.