Check Memory Information Using /proc/meminfo on Fedora 9



Computer Configuration GNU Linux Fedora using Linux Command

 

   The command example below use the /proc/meminfo to check memory information on Fedora.  The example below tested on Fedora 9 to check memory information on the system. Execute the cat /proc/meminfo command as show on example below to use cat command to display the contents of special file meminfo that contain current system memory information

 

Check memory info (meminfo):

Check memory information using proc meminfo on Fedora

[root@fedora ~]# cat /proc/meminfo

MemTotal:       831660 kB

MemFree:        370592 kB

Buffers:         79000 kB

Cached:         221884 kB

SwapCached:          0 kB

Active:         255896 kB

Inactive:       154628 kB

HighTotal:           0 kB

HighFree:            0 kB

LowTotal:       831660 kB

LowFree:        370592 kB

SwapTotal:      557048 kB

SwapFree:       557048 kB

Dirty:              16 kB

Writeback:           0 kB

AnonPages:      109640 kB

Mapped:          48768 kB

Slab:            39792 kB

SReclaimable:    31604 kB

SUnreclaim:       8188 kB

PageTables:       3540 kB

NFS_Unstable:        0 kB

Bounce:              0 kB

CommitLimit:    972876 kB

Committed_AS:   459460 kB

VmallocTotal:   184312 kB

VmallocUsed:      3152 kB

VmallocChunk:   180948 kB

HugePages_Total:     0

HugePages_Free:      0

HugePages_Rsvd:      0

HugePages_Surp:      0

Hugepagesize:     4096 kB

[root@fedora ~]#

 




Print Linux Man Page on Linux Fedora using Command Line Terminal



Computer Configuration GNU Linux Fedora using Linux Command

 

   The command example below show the Linux man command execute on Linux shell to print Linux man page for specific Linux command manual (Print Linux command manual page).

 

1.  Open Linux command line (Linux terminal).

2.  Execute man command to print the manual for Linux command manual page.

Print Linux Man page on Linux Fedora using command line

Command example:

[root@fedora ~]# man du | col -b | lpr

[root@fedora ~]#

 

If the printer on your Linux Fedora not setup properly you may get result as on example below:

[root@fedora ~]# man du | col -b | lpr

lpr: Error - scheduler not responding!

[root@fedora ~]#

 




Check SELinux Status on Linux Fedora using sestatus Command



Computer Configuration GNU Linux Fedora using Linux Command

 

   The command example below show the step by step to check SELinux status on Linux Fedora system.  Please note that the command status below execute to check SELinux status on the Fedora system with the SELinux is disable.

 

Check SELinux status:

Login as root user and execute sestatus command as on example below... or use su - -c "sestatus -v" and supply the root password when ask.

Check SELinux Status on Linux Fedora using sestatus command

[root@fedora ~]# sestatus -v

SELinux status:                 disabled

[root@fedora ~]#

 

Check SELinux status on SELinux enable system, you may get the following output:

[root@fedora ~]# sestatus -v

SELinux status:         enabled

SELinuxfs mount:        /selinux

Current Mode:           permissive

Policy version:         16

[root@fedora ~]#

 




View Linux File Permission and Directory Permission on Fedora using ls Command



Computer Configuration GNU Linux Fedora using Linux Command

 

   The Linux file permission and Linux directory permission can be view using the ls command.  The command example below show the step by step using ls command to view the Linux file permission and Linux directory permission on Linux Fedora system. 

 

View Linux file permission and directory permission on current directory:

[root@fedora ~]# ls -l

total 248

-rw------- 1 root root   3658 2008-05-20 08:26 anaconda-ks.cfg

drwxr-xr-x 3 root root   4096 2009-01-21 02:17 Desktop

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Documents

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Download

-rw-r--r-- 1 root root  72032 2008-05-20 08:25 install.log

-rw-r--r-- 1 root root   9766 2008-05-20 08:14 install.log.syslog

-rw------- 1 root root 119241 2008-08-03 05:07 mbox

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Music

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Pictures

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Public

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Templates

drwxr-xr-x 2 root root   4096 2008-05-20 08:55 Videos

[root@fedora ~]#

 

View Linux file permission using ls command:

[root@fedora ~]# ls -l install.log

-rw-r--r-- 1 root root 72032 2008-05-20 08:25 install.log

[root@fedora ~]#

 

File Permission Explanation:

 

Linux Directory permission:

View Linux Directory permission on Fedora

    1.   d  <= indicate directory

    2.   rwx <= indicate permission for user

    3.   rwx <= indicate permission for group

    4.   rwx <= indicate permission for other

 

r,w,x and - represent:

    -   <= no permission

    r   <= read permission

    w   <= write permission

    x   <= execute permission

 

Linux File Permission:

View Linux File Permission on Fedora

    1.   -  <= indicate file

    2.   rwx <= indicate permission for user

    3.   rwx <= indicate permission for group

    4.   rwx <= indicate permission for other

 

r,w,x and - represent:

    -   <= no permission

    r   <= read permission

    w   <= write permission

    x   <= execute permission