Beruflich Dokumente
Kultur Dokumente
A. chage -d 0 "User"
2.What command can be used to findout server architechure (x86 or x64) apart
from
uname?
A. arch
3. How do u findout the users who are NOT logged in for more than 30 days?
which file u
will check?
A. last , lastlog,
/var/log/wtmp
directory:shell
1)Username.
2)Password. Dummy value x denotes that its using shadow passwords
3)UID.
4)Primary
5)Comment
6)Home
7)Shell assigned to the user.
group
directory
ID.
/description.
path.
When the computer is switched on, it automatically invokes BIOS [a ROM chip embedded in
the motherboard].
The BIOS will start the processor and perform a POST [power on self test] to check whether
the connected device are ready to use and are working properly.
Once the POST is completes BIOS will check for the booting device. The boot sector is
always the first sector of the hard disk and BIOS will load the MBR into the memory. MBR
holds the boot loader of the OS.
From here the boot loader takes the control of the booting process.
After kernel is loaded the kernel will take the control of the booting process
Initrd will be loaded which contains drivers to detect hardware (Initialization of RAM Disk)
Then it will initialize all the hardware including I/O processors etc.
INIT will mount the root partition and other partitions as read/write and checks for file system
errors.
Based on the Runlevel, it will load the services and runs the startup scripts which are located
in /etc/rcX.d/ (Network, cups, nfs, SSH etc.)
How do you extend a LV? For example, How do you expand /var file system with additional
2GB space?
Check which logical volume (LV) holds the /var file system using df h
Now, find out this particular LV belongs to which VG using lvdisplay <lv_name>
Check the free space available in that Volume Group (VG) using vgdisplay <vgname>. Look
for "Free PE / Space" line in the ouput.
If the free space available in VG, now you can expand the LV using lvextend L +2G
<lv_name>. Now, Logical Volume has been expanded. Now we have to expand the file
system using resize2fs /var. All these can be done in online without unmounting the
filesystems.
dmesg
/var/log/messages
dmidecode t system
/var/log/debug
/var/log/kern.log
/var/log/mcelog
How do find out what are the files inside an RPM before installing it?
rpm -qlp package.rpm (Example : $ rpm -qlp rpm -qlp gnupg-1.4.5-1.i386.rpm)
File
Directory
Description
at.allow,
at.deny
/etc
.bash_logout
.bash_profile
.bashrc
bashrc
/etc
cron.allow,
cron.deny
/etc
crontab
/etc
fstab
/etc
group
/etc
grub.conf
/boot/grub
inittab
/etc
lilo.conf
/etc
login.defs
/etc
logrotate.conf
/etc
Configuration
settings
for
the
cronscheduled logrotatejob. On Red Hat distributions,
the logrotate.conf file usually includes other logrotate
configuration files from the /etc/logrotate.d directory.
lpd.conf
/etc
module-info
/boot
modules.conf
/etc
passwd
/etc
/etc
profile
/etc
rc
/etc/rc.d
rc.local
/etc/rc.d
rc.sysinit
/etc/rc.d
Runlevel-independent
shell
script
that
mounts
filesystems, enables virtual memory swapping, and
synchronizes the OS time with the CMOS clock.
services
/etc
shadow
/etc
syslog.conf
/etc
useradd
/etc/default
XF86Config
/etc/X11
vmlinuz
/boot