Linux introductory training tutorial common linux command interpretation


It was almost lunch time, and then I suddenly remembered that no users were added to samba. So, I played with samba.

  Samba is installed in three clicks and five out of two. Think about the continuous clicking of next step in the window, and be careful to beware of all kinds of binding software hidden in the corners. Linux installation software is really easy, a yum command, it is installed. Therefore, I think that linux is just a benefit for lazy people. You don't have to worry about messy things appearing in the system for no reason. For me, who has mild obsessive-compulsive disorder, it is a better system.

  Recently, I started tossing about Linux in my spare time. I thought it was very fun. Facing the black window, I typed commands, and it was very compelling. However, linux is written by foreigners and has a long history. The naming of the command line is also a great use of lazy thinking, which are all abbreviations. Many commands are really obscure if English is not good. Fortunately, with my big Baidu and Google, these problems will be solved easily. The following is the source of some linux commands used by the

editor life, as well as the Chinese interpretation. Most of these commands are from my incomprehensible memory, but Baidu and Google wrote them down, so they are disorganized, and everyone can watch them together.

  1.

  setenforce is the command to configure the selinux firewall of linux, execute setenforce 0 to close the selinux firewall.

  The setenforce command is the result of concatenating the words set (set) and enforce (execute). Another command getenforce can view the status of selinux.

  enforce beauty [ɪn'fɔːrs] vt. Force; enforce; implement; enforce; strengthen

  When setenforce is closed, when getenforce is used, it will return Permissive

  . The word premissive means laissez-faire and connivance.

  2,

  mysqld, memached are the service names of mysql and memache. But why should d be added after the software name? A smart netizen gave an explanation.

  D is the meaning of the English deamon daemon.

  The English pronunciation is dieman. My understanding is that a man who is about to die needs to be guarded.

  3. Use chmod ax filename to cancel the x execution permission of all members.

  Use chmod u=rwx,g=rwx,o=rw filename to set the permissions of each user precisely.

  4. The location of the startup scripts for all services is /etc/init.d

  5. uname -ru is the kernel version of unixname. This command can check the actual kernel version.

  6. cd switches the directory. Abbreviation for ChangeDirectory.

  7. The directory where pwd prints. PrintWorking Directory pwd -P prints the non-link address.

  8. mkdir -m This m refers to the umask user authority. You can enforce permissions on a file with mkdir -m 711 filename.

  9. mkdir -p creates directories recursively.

  10. cp -p is copied together with the attributes of the file, and the default attributes are not used.

  11, cp -r recursive continuous replication is used to copy directories.

  12. cp -i If the target file exists, it will ask whether to overwrite it.

  13. ap -a is equivalent to the function of -pdr combination. more commonly used.

  14. cp -l hard link (not commonly used)

  15. cp -r soft link (not commonly used)

  16. mv means to move the file or change the name to move. mv also has three parameters.

  -f force means force. If the target file exists, it will be overwritten without prompting.

  -u Prompt to overwrite if the target file exists.

  -u Overwrite if the copied file is new.

  The above options, I use less. It is often used to change the name.

  The following is also a commonly used usage. Put multiple files into one folder.

  cp test1 test2 test3 /root/tmp

  17 , I have read a lot of commands to view files. Such as cat, tca, more, I think less is the best use. Humanized design.

  Tidy up. In fact, it is not organized, it is just a note taken by myself when I study. Check it out in case you forget.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326490884&siteId=291194637