Linux Command ref


Basic Operational Commands:
Show users logged in:
$who
$who am i

To list the files/Directories: $ls $ls -l
Navigate to a location
GoTo root directory:
$cd /

GoTo /home/oracle directory
$cd /home/oracle
GoTo 1 level up
$cd ..


To Concatenate files and print on the standard output
$cat
System Admin Commands:
Show System info:
$uname
$uname -r

Show kernel info
$cat /etc/issue

To determine available RAM and Swap space: $free To determine the Physical RAM size: $grep MemTotal /proc/meminfo To determine the size of configured Swap space: $grep SwapTotal /proc/meminfo To determine available disk space: $df -k
$df -k /tmp
$df -k /u01

To mount a PenDrive
Insert pen drive into USB device,
To mount pen drive use mout command. Find out device name using
$fdisk –l
You may see /dev/sda as pen drive and /dev/sda1 as partition. Now create directory in /mnt
$mkdir -p /mnt/usbpen
Mount pen
$mount /dev/sda1 /mnt/usbpen

Comments

Popular posts from this blog

Crystal Report FAQ Error and Fixes

Export DataTable or DataSet to CSV or XML