红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Linux response commands

Linux response commands

uptime:
system uptime

uname -a:
OS type and kernel build

date:
date and time

fdisk -l:
Partition map

memdump:
Dump memory. You can nc pipe to remote machine for the suspicious worksation memory.

mac-robber and mactime:
Mac-robber creates a timeline file (body file). E.g ./mac-robber / | nc 192.169.1.1 2222 to pipe the timeline file for entire root. Mactime use mac-robber output file as input file to generate a readable output file (you can specify a certain time).

lsof -i (-t, -n, -p process id):
List open files with certain process id.

netstat -nap:
List network connections.

pcat:
A utility in TCT. Copy process memory from live system. E.g: ./pcat process_id | ./strings | ./less

check command history at /root/.bash_history, and other log files under /var/log.

ifconfig eth0 192.168.2.2 netmask 255.255.255.0
Assign static IP to eth0

ifdown eth0:
shutdown eth0

ifup eth0:
bring up eth0
or /etc/init.d/network restart

mount /dev/cdrom /mnt/cdrom:
mount cdrom

/etc/sysconfig/network-scripts/ifcfg-eth0
Eth0 configuration file on Linux.

TOP

I'm  a newer. I'm not familiar with these commands,but I'm learning .I think I will be good at it in a month!

TOP

Thank you for sharing!!

TOP

发新话题