设为首页 收藏本站
查看: 395|回复: 0

[经验分享] CentOS系统配置记录

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-6-17 10:10:45 | 显示全部楼层 |阅读模式
1. 挂載 ntfs:
确定已经安装了rpmforge软件库的源。在线安装使用 yum install 命令 含有 rpmforge源。

yum install fuse ntfs-3g -y
安装后, 打开 我的电脑  打开对应硬盘 (包含移动硬盘 、U盘):
(1)若是电脑与Linux分区所在盘则提示需要root授权,输入密码即可访问。
(2)若是 移动硬盘、U盘, 则直接可打开。   
2.   pipe
管道:名词表示两个进程的通信通道
动词表示通道机制
表示: cat hard_link_to_list | grep a   
cat查看 hard_link_to_list文件 , 利用管道 | 输出到 Terminal , 通过 grep 筛选
表示: cat hard_link_to_list | more   
文件大,管道输出到more

3.Permission
[alex@example.com photos]$ ls –l
total 2
drwxrwxrwx 2 alex alex 4096 oct 31 11:35 Holidays in France
-rw-rw-r-- 1 alex alex    8 oct 31 09:21 photo2.jpg

File Permision:
First character: File type (-: fle, d: directory, l: link; other types exist)
Second to fourth characters: Read, write, and execute permissions for   the owner
Fifth to seventh characters: Read, write, and execute permissions for   the group
Eighth to tenth characters: Read, write, and execute permissions for   other users


Permissions on a directory differ from regular fle permissions:
The x bit specifes whether or not the folder can be entered (such as using cd)
The r bit allows the directory content to be listed (such as using ls)
The w bit specifes whether or not new fles can be written in the folder   
(and existing fles moved to the folder)


4. Linux  Directory Infro
Path Description
/ The root directory: Not to be confused with /root. No fles are usually  placed at the root, although nothing really prevents you from doing so.
/bin Binaries: Common executable binaries and scripts available for all users of the  system. This is where essential programs such as ls, cp, or mv are found.
/boot Boot: Critical fles used at system boot time.
/dev Devices: Device and special fles, more information in the next section.
/etc Et cetera: System-wide confguration fles for services and applications. You  will often need to browse this directory, for example, when you will need to  edit the Nginx server settings and virtual hosts.
/home Home directories: This directory contains home directories for all users on  the system except the root user. In the examples we studied before we used  
/home/alex, the home directory for the alex user.
/lib Libraries: System-wide shared libraries and kernel modules, required by  binaries found in the /bin and /sbin folders.
/media Removable media: A directory that allows you to easily access removable  media using mount points for devices such as CD-ROMs, USB devices,   and so on.
/mnt Temporarily mounted flesystems: This directory is a suitable placeholder in  case the administrator wishes to mount a flesystem on a temporary basis.
/opt Optional software packages: In theory, this directory should host application  fles and add-on packages that do not come with the default operating system  
installation. In practice, it is hardly ever used.
/proc Kernel and process information virtual flesystem: This directory provides  access to a virtual flesystem containing a variety of statistics and details about  
all running processes.
/root Root user home directory: The root user, also known as Superuser, does not  have its home directory stored in the same folder as regular users (/home).  
Instead, its personal fles are stored in the /root. directory. The slash-root  (/root) directory is not to be confused with the root directory (/).
/sbin System binaries: Utilities dedicated to system administration, thus generally  accessed by the root user only. Programs such as ifconfg, halt, service, and  
many others can be found here.
/srv Service data: A placeholder for data coming from services hosted on the  system. Like many others, this directory is rarely used.
/tmp Temporary fles: Files that do not need to be conserved beyond program  execution should be stored here. Many operating systems actually clear the  
contents of this directory on reboot.




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-20715-1-1.html 上篇帖子: Linux下编写驱动程序(VFS) 下篇帖子: linux下解压命令大全 记录
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

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