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

[经验分享] Red Hat RHCSARHCE 7 Cert Guide(一)

[复制链接]
累计签到:161 天
连续签到:1 天
发表于 2017-4-14 16:13:45 | 显示全部楼层 |阅读模式
1.time ls: This executes the ls command where the bash internal time
        shows information about the time it took to complete this command.
2.which time:This shows the filename /bin/time that was found in the
        $PATH variable.
3./bin/time ls(time ls):there also is an internal commandtime , the time
        command from the path will not be executed unless you tell the
        shell specifically to do so.
4.STDIN(File Description Number:0)                STDOUT(1)                STDERROR(2)
        STDOUT:    >(same as 1>):overwrite    >>(same as 1>>):append
        STDERR:    2>      2>&1:Redirects STDERR to the same destination as STDOUT
        STDIN: <(same as 0<)
5.A device file on Linux is a file that is used to access specific hardware
6.If you want to discard a commands output, you can redirect to /dev/null.
7.ls ilweghi Documents 2>/dev/null  >output
8.ls -R |less (-R|--recursive)
9.Only the user root has permission to write to device files directly.
10. .bash_history(last 1000commands,in the home directory,are kept in memory)
11.history(CTL+R|!number|!sometext|history -c:clear the in-memory history|history -w)
12.vim(vi improved|yum install vim-enhanced):
        ^:Goes to the first position in the current line
        $:Goes to the last position in the current line.
        :%s/old/new/g :Replaces all occurrences of old with new
        !ls: Adds the output of ls (or any other command) in the current file.
13.evn(printenv):To get an overview of the current variables defined in your shell environment, type the env command.
14./etc/profile:This is the generic file that is processed by all users upon login
        /etc/bashrc:This file is processed when subshells are started.
        ~/.bash_profile:In this file, user-specific login shell variables can be defined.
        ~/.bashrc:In this user-specific file, subshell variables can be defined.
15./etc/motd,/etc/issue
        /etc/motd: Messages in /etc/motd display after a user has successfully logged in to a shell.
                (Notice that users in a graphical environment do not see its contents after a graphical
                login.)
        /etc/issue:The contents of this file display before the user logs in.
16.the .bashrc file is included in the login procedure, the variable is set after logging in.
17.--help|man command|help command|man -k command(partial command)|apropos(same as the command man -k)
18.Man pages:
        1:Executable programs or shell commands
        5:File formats and conventions
        8:System administration commands
19:man -f commands:displays a short description of the item as found in the man database(mandb)
        mandb:Updating mandb(Just run the mandb command as root without any arguments)
20.pinfo or info:type n to go to the next page, p to go to the previous page,
        or u to move up in the hierarchy.
21./usr/share/doc:You will not typically find much information about a
        command like ls , but some services do provide useful information in /usr/share/doc.
****************************************************************************************************************
1.Filesystem Hierarchy Standard (FHS)
        man 7 hier:this file system hierarchy is described in `man 7 hier`
        / :The root directory. This is where the file system tree starts.
        /bin:In here, you find executable programs that are needed to repair a system in
                a minimal troubleshooting mode. This directory is essential during boot.
        /boot:Contains all files and directories that are needed to boot the Linux kernel
        /dev:Device files that are used for accessing physical devices. This directory is
                essential during boot.
        /etc:Contains configuration files that are used by programs and services that
                are used on your server. This directory is essential during boot.
        /home:Used for local user home directories
        /lib,/lib64:Shared libraries that are used by programs in /boot, /bin and /sbin.
        /media,/mnt:Directories that are used for mounting devices in the file system tree.
        /opt:This directory is used for optional packages that may be installed on your
                server.
        /proc:This directory is used by the proc file system. This is a file system
                structure that gives access to kernel information.
        /root:The home directory of the root user.
        /run:Contains process and user specific information that has been created since
                the last boot.
        /sbin:Like /bin, but for system administration commands that are not necessarily
                needed by regular users.
        /srv:Directory that may be used for data that is used by services like NFS, FTP
                and HTTP .
        /sys:Used as an interface to different hardware devices that is managed by the
                Linux kernel and associated processes.
        /tmp:Contains temporary files that may be deleted without any warning during
                boot.
        /usr:Directory that contains subdirectories with program files, libraries for
                these program files and documentation about them. Typically, many
                subdirectories exist in this directory that mimic the contents of the /
                directory. The contents of /usr are not required during boot.
        /var:Directory that contains files which may change in size dynamically, such as
                log files, mail boxes, and spool files.
2./proc/mounts:The mount command gives an overview of all mounted devices. To get this
        information, the /proc/mounts file is read, where the kernel keeps information
        about all current mounts.
3.df -Th(-T option shows which file system type|-h option summarizes the output of the command in
        a human-readable way)
4.findmnt
        tmpfs:These are kernel devices that are used to create a temporary file system
                in RAM.
5.Wildcard Overview
        *:Refers to an unlimited number of all characters    ls *
        ?:Used to refer to one specific character that can be any character   ls c?t
        [auo]:Refers to one character that may be selected from the range that is specified
                between square brackets
6./tmp:This brings you to the /tmp directory, where all users have write permissions
7.mkdir /home/$USER/files:($USER , which is substituted with your current username)
8.rmdir:it works only if the directory is empty and does not contain any files.
9.ls -d:Shows the names of directories(ls -d zhanglei*)
10.cp -R(-r:--recursion):cp -R /etc /tmp
        cp -a(-dR) :ensures that permissions and all other file properties will be kept while copying.
11.Inode(except filename):Names are stored in the directory
        1.The data block where the file contents are stored
        2.The creation, access, and modification date
        3.Permissions
        4.File owners
12.Hard Link:
        1.Hard links must exist all on the same device.
        2.You cannot create hard links to directories.
        3.The number of aliases the original file has. When the last name is removed,
                the contents are also removed.



运维网声明 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-364937-1-1.html 上篇帖子: centos6.5 最小化安装FTP虚拟账号配置 下篇帖子: 老男孩 Linux高级架构课程第十期 【553节课程】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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