openKylin论坛

 找回密码

Ubuntu Linux命令行快速入门3 [复制链接]

以下命令可以查看useradd默认配置:
useradd -D
删除用户
sudo userdel -r sunny
如果不使用-r选项,需要用户手动删除home/sunny目录,以及val/spool/mail队列。
关闭Linux系统
sudo shutdown -h now
sudo shutdown -h 0
halt
重启Linux系统
sudo shutdown -r now
sudo shutdown -r 0
reboot
阅读说明文档命令apropos或者man或者info。
查找命令所在位置:whereis
(10)常用命令
管理用户和群组
chage,chfn, chsh, edquota, gpasswd, groupadd, groupdel, groupmod, groups,mkpasswd, newgrp, newusers, passwd, umask, useradd, userdel, usermod
管理文件和文件系统
cat,cd, chattr, chmod, chown, compress, cp, dd, fdisk, find, gzip, ln,mkdir, mksfs, mount, mv, rm, rmdir, rpm, sort, swapon, swapoff, tar,touch, umount, uncompress, uniq, unzip, zip
管理运行程序
bg,fg, kill, killall, nice, ps, pstree, renice, top, watch
获取信息
apropos,cal, cat, cmp, date, diff, df, dir, dmesg, du, env, file, free, grep,head, info, last, less, locate, ls, lsattr, man, more, pinfo, ps,pwd, stat, strings, tac, tail, top, uname, uptime, vdir, vmstat, w,wc, whatis, whereis, which, who, whoami
控制台文本编辑
ed,jed, joe, mcedit, nano, red, sed, vim
控制台网络命令
bing,elm, ftp, host, hostname, ifconfig, links, lynx, mail, mutt, ncftp,netconfig, netstat, pine, ping, pump, rdate, route, scp, sftp, ssh,tcpdump, traceroute, whois, wire-test

楼主
发表于 2013-7-4 20:24:13
回复

使用道具 举报

openKylin

GMT+8, 2024-5-17 15:49 , Processed in 0.015092 second(s), 17 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表