1. "Su-username" is the complete switch to a user environment, "SU user name" Only switch users, do not change the system environment. As follows
mes-79: ~ # su oracle[email protected]:/root> lsls:cannot Open Directory.: Permission denied[email Prot Ected]:/root> cd[email protected]:~> sqlplus/nologif' Sqlplus ' is not a typo can run the Following command to lookup the package, contains the binary: command-not-found Sqlplusbash:sqlplus:command not Found[email protected]
2 . Represents the current directory, or you can use ./ to represent ;. Represents a previous level of directory, or you can : / to represent.
3. 11 15:14 is the source file creation time, TEST03 is CP come over.
[[email protected] testcp] 41 Oracle DBA 15:14 test03
[[email protected] testcp] # ^c [[email protected] testcp]# ls-l--time=41 Oracle DBA 12 0 9:51 test03
4. Hard link and soft connect (symbolic Link)
To take a look at a statement, LN is making the connection file directive, LN does not add arguments to the hard connection, ln-s to create a soft connection. Hard links are different from file copy, the source file data is not copied, similar to an alias concept, all point to the same inode and a block, The inode here is 393218. A hard connection does not occupy the inode and block, and both of the soft connections are occupied because the files they create are separate new files. A soft connection is equivalent to a shortcut under the window System. In addition to the hard connection synchronization, if you modify the contents of the test.so,test03 will also change.
[[email protected] testcp]# ln test03 testln[[email protected] testcp]# Ll-iltotal8393218-rw-r--r--. 2 Oracle DBA 11 15:14test03393218-rw-r--r--. 2 Oracle DBA 11 15:14testln[[email protected] testcp]# cat Testlnppppwwrrrrrrrrr:rrrrrrrooor[[email protected] testcp]# cat Test03ppppwwrrrrrrrrr:rrrrrrrooor[[email protected] testcp]# ln-s test03 test.so[[email protected] testcp]# lstest03 Testln test.so[[email protected] testcp]# cat Test.soppppwwrrrrrrrrr:rrrrrrrooor[[email protected] testcp]# RM test03rm:remove regular file ' test03 '? y[[email protected] testcp]# cat Test.socat:test.so:No such file or directory[[email protected] testcp]# cat Testlnppppwwrrrrrrrrr:rrrrrrrooor[[email protected] testcp]# Ls-iltotal4393218-rw-r--r--. 1 Oracle DBA 11 15:14testln393219 lrwxrwxrwx. 1 root root 6 Feb 12 10:24test.so-test03[[email protected] testcp]#
Linux Command Collation