- 浏览: 209013 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
zhuchao_ko:
有用的废话。。。
架构与产品 -
450029462:
java学好了 c++其实也不难,就是 宏多点 内存控制多点 ...
从java转向C\c++开发要学会些什么 -
ldlzagg:
...
启示2013 -
raojl:
书是买了, 一直没时间捣鼓!
我发现开始喜欢Python了 -
raojl:
回过头看了看也不全然对啊,呵呵!
IT行业发展‘VIA’模式探讨
linux 命令精简
Unix/Linux Command Reference
.com
File Commands
ls – directory listingls -al – formatted listing with hidden files
cd dir -change directory to dir
cd – change to homepwd – show current directorymkdir dir – create a directory dir
rm file – delete file
rm -r dir – delete directory dir
rm -f file – force remove file
rm -rf dir – force remove directory dir *
cp file1 file2 – copy file1 to file2
cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it
doesn't exist
mv file1 file2 – rename or move file1 to file2
if file2 is an existing directory, moves file1 into
directory file2
ln -s file link – create symbolic link link to file
System Info
date – show the current date and time
cal – show this month's calendar
uptime – show current uptime
w – display who is onlinewhoami – who you are logged in as
finger user – display information about user
uname -a – show kernel information
cat /proc/cpuinfo – cpu information
cat /proc/meminfo – memory information
man command – show the manual for command
df – show disk usage
du – show directory space usagefree – show memory and swap usagewhereis app – show possible locations of app
which app – show which app will be run by default
Compression
touch file – create or update file
cat > file – places standard input into file
more file – output the contents of file
head file – output the first 10 lines of file
tail file – output the last 10 lines of file
tail -f file – output the contents of file as it
grows, starting with the last 10 lines
tar cf file.tar files – create a tar named
file.tar containing files
tar xf file.tar – extract the files from file.tar
tar czf file.tar.gz files – create a tar with
Gzip compressiontar xzf file.tar.gz – extract a tar using Gzip
tar cjf file.tar.bz2 – create a tar with Bzip2
compression
tar xjf file.tar.bz2 – extract a tar using Bzip2
gzip file – compresses file and renames it to
file.gzgzip -d file.gz – decompresses file.gz back to
file
Process Management
ps – display your currently active processes
top – display all running processes
kill pid – kill process id pid
killall proc – kill all processes named proc *
bg – lists stopped or background jobs; resume astopped job in the backgroundfg – brings the most recent job to foreground
fg n – brings job n to the foreground
Network
ping host – ping host and output results
whois domain – get whois information for domain
dig domain – get DNS information for domain
dig -x host – reverse lookup host
wget file – download file
wget -c file – continue a stopped download
File Permissions
chmod octal file – change the permissions of file
to octal, which can be found separately for user,
group, and world by adding:
●
4 – read (r)
●
2 – write (w)
●
1 – execute (x)
Examples:
chmod 777 – read, write, execute for all
chmod 755 – rwx for owner, rx for group and worldFor more options, see man chmod.
Installation
Install from source:
./configuremake
make install
dpkg -i pkg.deb – install a package (Debian)
rpm -Uvh pkg.rpm – install a package (RPM)
SSH Shortcuts ssh user@host – connect to host as user
ssh -p port user@host – connect to host on port
port as user
ssh-copy-id user@host – add your key to host for
user to enable a keyed or passwordless login
Ctrl+C – halts the current command
Ctrl+Z – stops the current command, resume with
fg in the foreground or bg in the background
Ctrl+D – log out of current session, similar to exit
Ctrl+W – erases one word in the current line
Ctrl+U – erases the whole line
Ctrl+R – type to bring up a recent command
!! -repeats the last commandexit – log out of current session
* use with extreme caution.
Searching
grep pattern files – search for pattern in files
grep -r pattern dir – search recursively for
pattern in dir
command | grep pattern – search for pattern in the
output of command
locate file – find all instances of file
Unix/Linux Command Reference
.com
File Commands
ls – directory listingls -al – formatted listing with hidden files
cd dir -change directory to dir
cd – change to homepwd – show current directorymkdir dir – create a directory dir
rm file – delete file
rm -r dir – delete directory dir
rm -f file – force remove file
rm -rf dir – force remove directory dir *
cp file1 file2 – copy file1 to file2
cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it
doesn't exist
mv file1 file2 – rename or move file1 to file2
if file2 is an existing directory, moves file1 into
directory file2
ln -s file link – create symbolic link link to file
System Info
date – show the current date and time
cal – show this month's calendar
uptime – show current uptime
w – display who is onlinewhoami – who you are logged in as
finger user – display information about user
uname -a – show kernel information
cat /proc/cpuinfo – cpu information
cat /proc/meminfo – memory information
man command – show the manual for command
df – show disk usage
du – show directory space usagefree – show memory and swap usagewhereis app – show possible locations of app
which app – show which app will be run by default
Compression
touch file – create or update file
cat > file – places standard input into file
more file – output the contents of file
head file – output the first 10 lines of file
tail file – output the last 10 lines of file
tail -f file – output the contents of file as it
grows, starting with the last 10 lines
tar cf file.tar files – create a tar named
file.tar containing files
tar xf file.tar – extract the files from file.tar
tar czf file.tar.gz files – create a tar with
Gzip compressiontar xzf file.tar.gz – extract a tar using Gzip
tar cjf file.tar.bz2 – create a tar with Bzip2
compression
tar xjf file.tar.bz2 – extract a tar using Bzip2
gzip file – compresses file and renames it to
file.gzgzip -d file.gz – decompresses file.gz back to
file
Process Management
ps – display your currently active processes
top – display all running processes
kill pid – kill process id pid
killall proc – kill all processes named proc *
bg – lists stopped or background jobs; resume astopped job in the backgroundfg – brings the most recent job to foreground
fg n – brings job n to the foreground
Network
ping host – ping host and output results
whois domain – get whois information for domain
dig domain – get DNS information for domain
dig -x host – reverse lookup host
wget file – download file
wget -c file – continue a stopped download
File Permissions
chmod octal file – change the permissions of file
to octal, which can be found separately for user,
group, and world by adding:
●
4 – read (r)
●
2 – write (w)
●
1 – execute (x)
Examples:
chmod 777 – read, write, execute for all
chmod 755 – rwx for owner, rx for group and worldFor more options, see man chmod.
Installation
Install from source:
./configuremake
make install
dpkg -i pkg.deb – install a package (Debian)
rpm -Uvh pkg.rpm – install a package (RPM)
SSH Shortcuts ssh user@host – connect to host as user
ssh -p port user@host – connect to host on port
port as user
ssh-copy-id user@host – add your key to host for
user to enable a keyed or passwordless login
Ctrl+C – halts the current command
Ctrl+Z – stops the current command, resume with
fg in the foreground or bg in the background
Ctrl+D – log out of current session, similar to exit
Ctrl+W – erases one word in the current line
Ctrl+U – erases the whole line
Ctrl+R – type to bring up a recent command
!! -repeats the last commandexit – log out of current session
* use with extreme caution.
Searching
grep pattern files – search for pattern in files
grep -r pattern dir – search recursively for
pattern in dir
command | grep pattern – search for pattern in the
output of command
locate file – find all instances of file
- fwunixref.pdf (69.1 KB)
- 下载次数: 10
发表评论
-
服务端口快扫shell
2014-08-25 11:50 691#set -x var_start=8000 arra ... -
远程批量部署
2014-07-29 11:50 596#!/usr/bin/expect -- if ... -
linux 下建立异步链接
2014-05-07 11:59 543int32_t SockEndPoint::connect_ ... -
atomic笔记
2013-12-11 11:43 364inline void ice_atomic_set(ic ... -
求最大公共子串
2013-07-15 11:21 697#include <stdio.h> #inc ... -
日志记录
2013-01-14 09:25 714[root@localhost Capserver]# ... -
c开发笔记
2012-02-03 09:36 6741、就是有大量的输入参数或输出参数需要一次性交换时,可以考虑定 ... -
编译校验【代码笔记】
2011-06-17 09:07 5691、版本编译控制(比如多项目) 2、编译校验 3、s ... -
GCC注意笔记
2011-02-22 18:38 702大多数程序和库在编译 ... -
邻接表实现状态图【大家帮忙看看问题】
2010-06-26 18:15 884StatusGrap.cpp // StatusGraph ... -
gsoap编写webservice应用
2010-06-01 15:02 2124The gSOAP tools minimize applic ... -
setsockopt 笔记
2010-04-22 15:12 7831、TCP_NODELAY是唯一使用IPPROTO_TCP层的 ... -
随录-增量记录
2010-02-25 10:41 647程序开发,对于日志的记录需要主要以下几个问题。 1、多线程或 ... -
快速入门sqlite内存数据库,用sqlite构建一日志工具
2009-12-25 11:28 3694今天上午无意在搜索的时候发现很多应用程序用了sqllite,o ... -
dos脚本+ftp实现快速升级
2009-12-25 09:52 1457cd \ ;写ftpget.src文件,存储ftp命令。该文件 ... -
推荐一款xml分析微型库tinyxml
2009-08-22 08:16 1274tinyxml,至所以叫tin,就是短小精悍。搭配前面讲的gs ... -
用gsoap编写webservice客户端接口dll的方法案例
2009-08-22 07:55 28901)使用手册:见http://gsoap2.source ... -
命令随写
2009-08-13 16:22 711ocrale启动监听:lsnrctl start 启动服务:o ... -
LUA 分析文件
2009-06-02 14:07 1104BUFSIZE = 2^13 -- 8K ... -
避免对指针和数字类型重载
2009-05-22 14:17 772条款25: 避免对指针和数字类型重载 快速抢答: ...
相关推荐
《三分钟看懂ChatGPT.pdf》是一份简明扼要的资源,旨在介绍ChatGPT,这是一个基于GPT-3.5架构的大型语言模型。该资源提供了对ChatGPT的概述,包括其功能、用途和工作原理。它还提供了使用ChatGPT的一些提示和建议,...
【标题】:“浙商策略:三分钟看中观,新股新赛道之十,机器人.rar”这一标题揭示了本文档的核心内容,聚焦于机器人技术在新兴市场中的应用与投资策略。"浙商策略"通常指的是浙商证券提供的投资分析报告,旨在帮助...
三分钟学会看键盘,教你看懂钢琴五线谱.doc
公司有很多财务报表,合同文档,客户资料等,这些是公司的绝密资料,既然是文档总要给人看,既然给人看又怎么能防止泄密呢?您还在用共享文件夹、优盘拷贝、电子邮件这样的原始的方式传播如此重要的文档吗?您的机密...
文档标题和描述中提到的是关于"三分钟的幽默自我介绍"的资料,这通常是指在特定场合,如求职面试、演讲比赛或社交活动中,用简短而有趣的方式介绍自己的过程。这种自我介绍旨在吸引听众的注意力,展示个人的个性、...
从提供的文件内容来看,该文档是一份东吴证券发布的证券研究报告,报告日期为2019年10月23日,标题为“三分钟看中观,9月手机出货量同比降环比增,玻璃涨价-1023”。报告主要关注的是宏观经济、行业上下游情况以及...
根据给定的部分内容来看,这似乎是一段模拟倒计时过程的文本。其中包含了从10秒钟开始的倒计时,并在结束时输出“TIMEUP!”字样。这段文本可以用来作为倒计时PPT中的动态元素,通过编程语言(如VBA)实现自动化更新...
【标题】:“讲故事课前三分钟演讲我是小小主持人照片背景PPT学习教案...综合来看,这份PPT教案是一个全面的教学工具,旨在通过精心设计的讲故事活动,培养小学生的基本演讲技能和公众表现力,同时促进他们的个人成长。
根据提供的文档信息,本文将围绕“母爱”这一主题展开,深入探讨母爱的伟大与无私,以及我们应该如何感恩母爱。 ### 母爱的伟大 母爱是一种超越时间和空间的情感,它比天空更为广阔,比大地更为深厚。母爱不仅仅是...
从`CoreJPush-master`这个文件名来看,这是一个包含源码的项目仓库。在这个压缩包中,你可能找到以下内容: 1. **源代码**:CoreJPush的Java或Kotlin类,包括核心功能模块、初始化模块、监听器模块等。 2. **示例...
在给定的文档中,提供了三个2021主持人大赛三分钟演讲稿的示例,分别是关于“话说长三角”、“挑战不可能”以及“瞬间故事”的演讲。这些演讲涵盖了个人经历、地区发展变化及个人成长等多个方面,旨在通过真实的故事...
在Unit 3 "Look at…" 可能会进一步扩展物体的描述和观察,让学生学习如何用英语表达看或指代特定的物体,并可能引入更多的形容词来描述事物的外观或状态。这样的训练有助于提升学生的观察力和语言表达能力。 这些...
从给定文件的内容来看,该文档是一本童话故事集,包含了三个温馨的故事,每个故事都围绕一个核心主题展开,旨在传达一定的生活道理和教育意义。下面我将对这些故事中蕴含的知识点进行详细说明: 第一个故事《小猪家...
看懂了这个三分钟文档,想不学会计算机组成原理里面的位移操作都难
从给定的文件信息来看,本文档主要涉及的是“扶贫助学”主题的演讲稿内容,具体包括了扶贫助学的意义、目的、以及对于学校建设的帮助等内容。以下是对文档中提到的关键知识点的总结和扩展: ### 扶贫助学的重要性 ...
策略:三分钟看中观,猪价上涨,日均耗煤量回升-200219.pdf
策略:三分钟看中观,存储器继续涨价,避险情绪推升金价-200226.pdf
从给定的文件信息来看,本文档主要围绕“国旗下的讲话”这一主题展开,并着重讨论了“奋力拼搏”的精神内涵及其重要性。文章通过不同角度讲述了个人经历以及著名人物的事迹来强调“奋斗”对于成功的重要性。以下是...
从给定的文件信息来看,本文档主要围绕“母亲节国旗下演讲稿”这一主题展开,通过对母爱的深刻理解和感悟进行阐述。以下是从标题、描述、标签以及部分内容中提炼的相关知识点。 ### 1. 母爱的本质 - **母爱如同...