File processing of common Linux commands (ii)

Source: Internet
Author: User

Command name: Touch

Location:/bin.touch

Execute Permissions: All Users

[email protected] tmp]# touch list.txt[[email protected] tmp]# touch/root/list.txt[[email protected] tmp]# Touch Program files[[email protected] tmp]# ll total 52drwxr-xr-x 2 root root 4096 12-01 13:05 china-rw-r--r--1 ro OT root 0 12-01 13:43 filesdrwx------3 root root 4096 11-30 19:15 gconfd-root-rw-------1 root root 630 12-01 13:08 g  rub.confdrwx------2 root root 4096 11-30 19:15 keyring-n4kwui-rw-r--r--1 root root 0 12-01 13:36 list.txtsrwxr-xr-x 1 Root root 0 11-30 19:15 mapping-rootdrwx------2 root root 4096 12-01 12:10 orbit-root-rw-r--r--1 root root 0 12-0 1 13:43 program-rw-r--r--1 root root 5 12-01 13:00 [email protected]:0.0srwxr-xr-x 1 root root 0 11-30 20:10 [    EMAIL PROTECTED]:0.0SRW-------1 root root 0 11-30 19:16 scim-helper-manager-socket-rootsrw-------1 root root 0 11-30 19:16 scim-panel-socket:0-rootsrw-------1 root root 0 11-30 19:15 scim-socket-frontend-rootdrwx------2 root R oot 4096 11-30 19:15 SSH-MIBWgs4219drwx------2 root root 4096 11-30 19:15 virtual-root.tyft1adrwxr-xr-x 2 root root 4096 11-30 21:48 VMWARE-CONFIG0DRW XRWXRWT 4 root root 4096 11-30 18:13 vmwarednddrwxr-xr-x 2 root root 4096 11-30 19:13 vmware-rootdrwx------2 root root 40 11-30 19:15 vmware-root-2083992326[[email protected] tmp]# Touch "Profile File" [[email protected] tmp]# Lschinafilesgconfd-rootgrub.confkeyring-n4kwuilist.txtmapping-rootorbit-root Profile fileprogram[email  protected]:0.0[email protected]:0.0scim-helper-manager-socket-rootscim-panel-socket:0- rootscim-socket-frontend-rootssh-mibwgs4219virtual-root.tyft1avmware-config0vmwaredndvmware-rootvmware-root-2083992326  [[email protected] tmp]#


Command name: Cat

Command path:/bin/cat

Execute Permissions: All Users

[Email protected] tmp]# cat/etc/issuered Hat Enterprise Linux Server Release 5.4 (tikanga) Kernel \ R on an \m[[email prot Ected] tmp]# cat-n/etc/issue     1  Red Hat Enterprise Linux Server Release 5.4 (Tikanga)     2  Kernel \ r on an \ M     

Command name: TAC

Location:/usr/bin/tac

[Email protected] tmp]# cat/etc/issuered Hat Enterprise Linux Server Release 5.4 (tikanga) Kernel \ R on an \m[[email prot Ected] tmp]# cat-n/etc/issue     1  Red Hat Enterprise Linux Server Release 5.4 (Tikanga)     2  Kernel \ r on an \ M     3[[email protected] tmp]# [[email protected] tmp]# tac/etc/issuekernel \ r on an \mred Hat Enterprise Linux Server R Elease 5.4 (Tikanga) [[email protected] tmp]# tac-n/ETC/ISSUETAC: Invalid option--N Please try to execute "TAC--help" for more information.

Command name: More can only page down

Location:/bin/more

Space F Q

Command name: Less

Page Up (one page UP)

To collect the cable


Command name: Head, tail

[Email protected] tmp]# head  /etc/services #/etc/services:# $Id: services,v 1.42 2006/02/23 13:09:23 Pknirsch Exp $# # Network Services, Internet style## Note that it's presently the policy of IANA to assign a single well-known# port numb Er for both TCP and UDP; Hence, most entries here has a entries# even if the protocol doesn ' t support UDP operations.# Updated from RFC 1700, ' Assigned Numbers ' (October 1994).  Not all ports# is included, only the more common ones. [Email protected] tmp]# head-1  

[Email protected] tmp]# tail-f  /etc/services  #动态变化nimspooler      48001/udp                       # Nimbus Spoolernimhub          48002/tcp                       # Nimbus Hubnimhub          48002/udp                       # Nimbus HUBNIMGTW          48003/tcp                       # Nimbus          GATEWAYNIMGTW 48003/UDP                       # Nimbus GATEWAYCOM-BARDAC-DW   48556/tcp                       # COM-BARDAC-DWCOM-BARDAC-DW   48556/udp                       # com-bardac-dwiqobject        48619/tcp                       # iqobjectiqobject        48619/udp                       # Iqobject

Command name: LN

Hard links can be updated synchronously, but cannot be partitioned, and hard links cannot be established for the directory

[[email protected] tmp]# ln-s/etc/issue/tmp/issue.soft[[email protected] tmp]# ln  /etc/issue/tmp/issue.hard[[ Email protected] tmp]# ln-l/etc/issueln: Invalid option--L Please try to perform "ln--help" for more information. [[email protected] tmp]# ls-l/etc/issue-rw-r--r--2 root root "2009-08-04/etc/issue[[email protected] tmp]# ls-l/TM p/issue*-rw-r--r--2 root root 2009-08-04/tmp/issue.hardlrwxrwxrwx 1 root root 12-01 14:36/tmp/issue.soft-E Tc/issue[[email protected] tmp]# [[email protected] tmp]# ls-i/etc/issue/tmp/issue.soft/tmp/issue.hard 1573051/etc/is Sue  1573051/tmp/issue.hard   



File processing of common Linux commands (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.