Ten Powerful Linux Commands
Today is the last day in 2009, I have no idea what should I do but just want to pray that my family, relatives and bosom friends would have a sweet life in the next year. Linux is a 2nd OS in my life, there are always something new can make me feel awesome, so I think that with continuous interests it brings to me I believe that I will do well in it though some obstacles may often encountered when using it. Following article is digged from digg website that I think it's helpful to me and post it here hoping the author do not mind. The original article's link is http://laptoplogic.com/resources/ten-powerful -linux-commands
This article is equal parts opinion and fact, as the most powerful commands depends on what one needs them for; someone who is running a network of Linux machines will require different commands than an individual user. With that said, without regard to opinion, many commands are powerful, and any Linux user would do well to know them. Below are ten such commands, all simple in nature but powerful in their usefulness. The method in which they are executed will depend on the Linux system used. For example, you may need to use su instead of sudo or nothing at all, if you're running as root. Note: to see a full list of possibilities for commands, type 'command - -help' in the Terminal.
1. PS
The PS command is a powerful command, and its power comes from its utter versatility. The PS command means 'process status', and displays everything to do with processes; think of it as the task manager of geeks. There are many variations of PS that can be used, such as the common PS AUX, which will pull a Terminal list of all running processes, or PS AUX | GREP PID to pull up a specific process. Used in conjunction with the kill command allows users to end processes.
2. RM -RF
This command is, quite possibly, the most powerful command, as it can destroy entire systems in the wrong hands
相关文档:
例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......
每个中断向量都有自己的irq_desc_t描述符,所有的这些描述符组织在一起形成irq_desc数组。
typedef struct irq_desc {
hw_irq_controller *handler;指向pic对象(hw_irq_controller描述符),服务于irq线
void *handler_data;指 ......
信号指定处理函数
void (*signal (int signum,void (*handle)(int)))(int);设置某个信号的处理方法
int sigaction(int signum,const struct sigaction *act,struct sigaction *oldact);用于检查或改变进程在接到信号时的动作
信号集操作函数
static inline void sigaddset(sigset_t *set,int _sig);
static inline voi ......
1. TOP 命令 然后按“1”,可以查看CPU有多少个核。
2. less /proc/cpuinof 可以查看 CPU内核个数及更多内核信息。
3.dmesg |grep CPU 可以核实CPU内核个数且基于多少个物理CPU及详细信息。
4.dmidecode |grep "CPU" 可以核实多少个物理CPU。
另外 grep '' * 有妙用,可以查看 ......
linux系统安装完,以后通过命令模式配置网卡IP。配置文件通常是/etc/sysconfig/network-scripts/ifcfg-interface-name
1.配置网卡IP地址
vi /etc/sysconfig/network-scripts/ifcfg-eth0 #第二块网卡:vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth0 #物理设备名
IPADDR=192.168.1.10 #IP地址
NETMASK=255. ......