For Machine Memory Information
=======================
cat /proc/meminfo
or
less /proc/meminfo
For Machine CPU Information
=====================
cat /proc/cpuinfo
or
less /proc/cpuinfo
For Getting directory list
=========================
ls
ls -rt (sorted list)
For Getting Help
================
man <command name>
Finding size of Main directories in machine
==================================
df -h
Find size of current directory
==============================
du -sh (for summarized dir size)
du -h
For Creating and Removing Directory
===================================
mkdir
rmdir
To remove the Directory and Sub directories
==========================================
rm -rf <Directory name>
To kill a process
=================
kill -kill <process id>
or
kill -9 <process id>
To execute an sh script
=======================
sh <process name .sh>
or
. <process name .sh>
To move file from 1 directory to other
=======================================
move <file name> <destination directory name>
To move file from one Linux machine to other
============================================
scp <file name> < Destination server user>@< Destination ip address >:<destination path>
Example:
scp backup.zip oracle@10.0.0.0:/home/oracle/my_dir
Query rpm
=========
rpm -q <rpm name>
Install rpm
===========
rpm -i <rpm name>
Extract Tar.gz file
===================
tar -xzvf test.tar.gz
Make tar.gz file
================
tar -czvf test.tar.gz
Reboot server
=============
su - root
reboot
=======================
cat /proc/meminfo
or
less /proc/meminfo
For Machine CPU Information
=====================
cat /proc/cpuinfo
or
less /proc/cpuinfo
For Getting directory list
=========================
ls
ls -rt (sorted list)
For Getting Help
================
man <command name>
Finding size of Main directories in machine
==================================
df -h
Find size of current directory
==============================
du -sh (for summarized dir size)
du -h
For Creating and Removing Directory
===================================
mkdir
rmdir
To remove the Directory and Sub directories
==========================================
rm -rf <Directory name>
To kill a process
=================
kill -kill <process id>
or
kill -9 <process id>
To execute an sh script
=======================
sh <process name .sh>
or
. <process name .sh>
To move file from 1 directory to other
=======================================
move <file name> <destination directory name>
To move file from one Linux machine to other
============================================
scp <file name> < Destination server user>@< Destination ip address >:<destination path>
Example:
scp backup.zip oracle@10.0.0.0:/home/oracle/my_dir
Query rpm
=========
rpm -q <rpm name>
- -q query operation
- -a queries all installed packages
rpm -qa --queryformat '%{name-%{version}-%{release} %{size}\n'
===========
rpm -i <rpm name>
rpm command and options
- -i : install a package
- -v : verbose
- -h : print hash marks as the package archive is unpacked.
Extract Tar.gz file
===================
tar -xzvf test.tar.gz
Make tar.gz file
================
tar -czvf test.tar.gz
Reboot server
=============
su - root
reboot
Comments
Post a Comment