Linux命令笔记(未完成)

来源:互联网 发布:understand mac 编辑:程序博客网 时间:2024/06/05 03:01

·gedit Ide 启动ide

gedit xxx.c

编译.c文件为目标文件, gcc -o xxx xxx.c

启动目标文件 ./xxx



Software:

sysbanner


用户管理:

(/etc/sudoers.d/     /etc/group/)

who am i ** who mom likes

sudo adduser xxx

su -l xxx (ctrl+d退出)

groups somebody

sudo usermod -G sudo someone

sudo deluser xxx --remove-home

sudo  chown user xxx,file

chmod 700 xx.file




基本操作:

ctrl+c  取消当前操作

ctrl+d  取消输入或退出终端

ctrl+s  暂停程序

ctrl+a  行头

ctrl+e  行末

alt+back 删除一个单词

touch xxx.file 

man  手册 manual pages

man 1 ls   *first page of ls*

sudo apt-get update 

sudo apt-get install xxx

ls -lh xxx.file

kill -s 9 pid 意味着全部杀死,立即执行。

netstat -apn |grep pid

ps -aun |grep pid 

locale 查看地区

man -k xx

help xx

info xx

ctrl+shift+c,v 复制粘贴




解释:

sudo 相当于管理员执行(windows)

d  rwx rwx r-x--first   |-- 'd'  : directory 、 'l':link 、 ‘b' :block 、 'c': 字符设备、  ‘s’:socket、‘p’:pipe、 ‘-’:普通   |-- rwx mean the owner's authorities    |-- rwx mean the group's authorities   |-- r-x mean the other users' authorities