linux‘s command notebook

Linux 不常用命令,也有命令技巧什么的。算是一个linux的笔记。
lastb 列出不成功登录的记录
ac (1) – print statistics about users’ connect time
users (1) – print the user names of users currently logged in to the current host
lastlog (8) – reports the most recent login of all users or of a given user
lastcomm (1) – print out information about previously executed commands

echo “nameserver 10.254.131.253” >/etc/resolv.conf
创建根服务器的数据文件:
dig -t NS . >/var/named/named.ca

rndc-confgen>/etc/rndc.conf
tail +13 /etc/rndc.conf >>/etc/name.conf

xwd (1x) – dump an image of an X window
xwdtopnm (1) – convert an X11 or X10 window dump file to a PNM image
convert (1) – convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more

xmessage (1x) – display a message or query in a window (X-based /bin/echo)
#at 16:05
at>xmessage -display :0.0 “Message”
at>

xsetroot (1x) – root window parameter setting utility for X
atrm [at] (1) – queue, examine or delete jobs for later execution
atq [at] (1) – queue, examine or delete jobs for later execution
创建私钥和证书文件
#cd /etc; mkdir ssl.crt server.key
#openssl genrsa -out /et/ssl.key/server.key 1024
#openssl req -new -x509 -key /et/ssl.key/server.key -out /etc/ssl.crt/server.crt
编辑/etc/ssl.conf
重启appache
apachectl stop
apachectl startssl

arch (1) – print machine architecture
indent (1) – changes the appearance of a C program by inserting or deleting whitespace
indent (rpm) – A GNU program for formatting C code.
hdparm (8) – get/set hard disk parameters
hdparm (rpm) – A utility for displaying and/or setting hard disk parameters.
uptime (1) – Tell how long the system has been running
type (1p) – write a description of command type
type [builtins] (1) – bash built-in commands, see bash(1)
xmessage (1x) – display a message or query in a window (X-based /bin/echo)
xsetroot (1x) – root window parameter setting utility for X
symlinks (8) – symbolic link maintenance utility
symlinks (rpm) – A utility which maintains a system’s symbolic links.
xargs (1) – build and execute command lines from standard input
xargs (1p) – construct argument lists and invoke utility
ulimit (1p) – set or report file size limit
ulimit (3) – get and set user limits
ulimit (3p) – get and set process limits
ulimit [builtins] (1) – bash built-in commands, see bash(1)
ulimit.h [ulimit] (0p) – ulimit commands
ulimit [unimplemented] (2) – unimplemented system calls
vmstat (8) – Report virtual memory statistics
logrotate (8) – rotates, compresses, and mails system logs
logrotate (rpm) – Rotates, compresses, removes and mails system log files.
stat (1) – display file or file system status
stat (2) – get file status
stat (3p) – get file status
记录会话命令 script (1) – make typescript of terminal session
终端设置命令 stty
stty -a
display (1) – displays an image or image sequence on any X server
import (1) – saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen
tune2fs (8) – adjust tunable filesystem parameters on ext2/ext3 filesystems
losetup (8) – set up and control loop devices
dircolors – color setup for ls

请选择你看完该文章的感受:

不错 超赞 无聊 扯淡 不解 路过

随机文章:

发表评论