码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 学习笔记

时间:2017-01-20 10:50:43      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:user   ref   下载文件   scn   文件名   方法   ls -l   服务器   sina   

资料来自网络收集,分享和笔记

 

【如何选择你需要的Linux版本】

【服务器版本】

http://jingyan.baidu.com/article/11c17a2c143101f446e39d3b.html

【桌面应用版本】

http://os.51cto.com/art/201307/404309.htm

【2016Linux排行】

http://www.ithome.com/html/it/201621.htm

http://www.linuxidc.com/Linux/2016-01/127138.htm

 

001、 查看当前目录
# pwd

=======================================================================================================================


002. 创建目录
# mkdir software

 

=======================================================================================================================


003. 进入目录
# cd root/kevin

=======================================================================================================================


004. 查看当前路径下面的所有文件夹
【参考】:http://www.centoscn.com/CentOS/help/2013/1024/1967.html
说明:ls 显示结果以不同的颜色来区分文件类别。蓝色代表目录,灰色代表普通文件,绿色代表可执行文件,红色代表压缩文件,浅蓝色代表链接文件。
另外 cd ~ = cd root , 表示回到系统根目录

# ls -la
或者 #ls -la root
说明:在Linux系统中,以“.”开头的就是隐藏文件或隐藏目录。

说明:ls -l命令可以简写成ll,

输出的信息共分为7组:
文件类别和文件权限、链接数或子目录个数、文件所有者、文件所属组、文件大小(单位为字节B)、文件创建或修改时间、文件名。

文件类别:第一组前1位表示文件类别,“-”代表普通文件,“d”代表目录,“l”代表符号链接,“c”代表字符设备,“b”代表块设备
文件权限:第一组后9位表示文件权限,前3位为user、中间3位为group、后三位为other的权限

-d---显示目录本身的属性而不是目录中的内容。

=======================================================================================================================


005. 查看本机IP信息
# ifconfig -a

=======================================================================================================================


006. 查询公网IP
# curl ifconfig.me

查询公网IP
# tracepath www.sina.com

=======================================================================================================================


007. 设置IP地址
【参考】http://jingyan.baidu.com/article/e4d08ffdd417660fd3f60d70.html

=======================================================================================================================


008. 定时任务Crontab命令【重要】
http://www.centoscn.com/CentOS/help/2014/1030/4025.html

=======================================================================================================================


009. 下载文件 wget命令详解
http://www.centoscn.com/CentOS/help/2013/0803/914.html ;

=======================================================================================================================


010. 正确关机方法
http://www.centoscn.com/CentOS/2014/0606/3098.html ;

=======================================================================================================================


011. LVM磁盘管理学习【重要】
http://www.centoscn.com/CentOS/Intermediate/2015/1106/6395.html ;

=======================================================================================================================


012. 查看端口占用情况和开启端口命令
http://www.centoscn.com/CentOS/help/2013/0725/558.html

=======================================================================================================================


013. 建立一个新用户
http://www.centoscn.com/CentOS/help/2013/0725/597.html

=======================================================================================================================


014. CentOS7 (精简操作指令) 【重要】
http://www.centoscn.com/CentOS/help/2016/0429/7147.html ;

=======================================================================================================================


015. CentOS如何查看硬盘品牌型号等具体信息
http://www.centoscn.com/CentOS/help/2015/0705/5803.html

=======================================================================================================================


016. Linux常用命令大全
http://www.centoscn.com/CentOS/help/2015/0712/5843.html

=======================================================================================================================


017. CentOS系统管理相关命令
http://www.centoscn.com/CentOS/help/2015/1030/6358.html ;

=======================================================================================================================


018. CentOS下tar解压 gz解压 bz2等各种解压文件使用方法
http://www.centoscn.com/CentOS/help/2014/0613/3133.html

=======================================================================================================================


019. CentOS中zip压缩和unzip解压缩命令详解
http://www.centoscn.com/CentOS/help/2013/0826/1448.html

=======================================================================================================================


020. Centos tar压缩与解压缩命令大全
http://www.centoscn.com/CentOS/help/2013/0725/496.html

=======================================================================================================================


021. CentOS 7 firewalld使用简介
http://www.centoscn.com/CentOS/help/2015/0208/4667.html

=======================================================================================================================


022. CentOS只查看文件夹的几种方法
http://www.centoscn.com/CentOS/help/2015/0705/5799.html

=======================================================================================================================


023. CentOS SSH安装与配置
http://www.centoscn.com/CentOS/config/2013/0926/1713.html

=======================================================================================================================


024. CentOS服务器时间同步的2种方法
http://www.centoscn.com/CentOS/config/2013/1017/1878.html

=======================================================================================================================


025. CentOS下安装软件的常用方法
http://www.centoscn.com/CentOS/2012/1226/96.html

=======================================================================================================================


026. CentOS7.0下载各版本说明 新增Everything版
http://www.centoscn.com/CentOS/2014/0708/3268.html

=======================================================================================================================


027. CentOS常用命令 ---- grep命令
http://www.centoscn.com/CentOS/help/2016/0816/7789.html

=======================================================================================================================


028. CentOS 基础命令 【重要】
http://www.centoscn.com/CentOS/help/

=======================================================================================================================


029. CentOS 系统配置 【重要】
http://www.centoscn.com/CentOS/config/ ;

=======================================================================================================================


030. CentOS 中级进介 【重要】

http://www.centoscn.com/CentOS/Intermediate/

 

CentOS 学习笔记

标签:user   ref   下载文件   scn   文件名   方法   ls -l   服务器   sina   

原文地址:http://www.cnblogs.com/itshare/p/6321940.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!