After lunch, I suddenly remembered that there were no users added to samba. So we started playing with samba.
After lunch, I suddenly remembered that there were no users added to samba. So we started playing with samba.
Samba has been installed after three times, five times, and two times. think about the next step in the window, and be careful with the various hidden binding software in the corner. Installing the software in Linux is too easy. a yum command will be installed. Therefore, I think that linux is just a benefit for the lazy, so you don't have to worry about the mess in the system for no reason. for me with slight obsessive-compulsive disorder, it is a good system.
Recently, I started tossing linux in my spare time and thought it was quite fun. in the face of the black and black windows, I think it's a great deal. However, linux is written by foreigners and has a long history. The naming of command lines is also a great use of lazy thinking. Many commands are obscure if they are not good at English. Fortunately, there are big Baidu and google, and these problems will be solved. The following are the sources of some linux commands I use in my daily life and their meaning in Chinese. Most of these commands are just something I can't understand, but Baidu and google keep it in mind, so they are disorganized.
1,
Setenforce is the linux selinux firewall configuration command. run setenforce 0 to disable selinux firewall.
The setenforce command is the result of the concatenation of the word set (set) and enforce (execution. Another command, getenforce, can view the status of selinux.
Enforce us [limit n'f limit rs] vt. force; implement; execute; strengthen
When setenforce is disabled, Permissive is returned when getenforce is used.
This premissive word means laissez-faire and conniving.
2,
Mysqld and memached are the service names of mysql and memache. But why should I add d after the software name? Some smart netizens gave an explanation.
D is the meaning of the deamon daemon.
The English pronunciation is dieman. My understanding is that a dead man needs to guard.
3. use chmod a-x filename to cancel the x execution permission of all members.
You can use chmod u = rwx, g = rwx, o = rw filename to precisely set permissions for each user.
4. the start script location of all services/etc/init. d
5. uname-r u is worth the unix name kernel version. you can view the actual kernel version by using this command.
6. abbreviated cd Directory Change Directory.
7. the Directory where pwd is printed. Print Working Directory pwd-P prints non-link addresses.
8. mkdir-m indicates umask user permissions. You can use mkdir-m 711 filename to forcibly set permissions for a file.
9. create a directory recursively by mkdir-p.
10. cp-p is used together to copy the attributes of a file. the default attributes are not used.
11. cp-r recursive Continuous Replication is used to copy directories.
12. if the target file exists, cp-I will ask whether to overwrite it.
13. ap-a is equivalent to the function of-p-d-r combination. It is usually used.
14. cp-l hard link (not commonly used)
15. cp-r soft link (not commonly used)
16. The music video moves the file or changes the name to move. Music videos also have three parameters.
-F force indicates force. If the target file exists, you are not prompted to overwrite it.
-U if the target file exists, the system prompts overwriting.
-U is overwritten only when the copied file is new.
I use fewer of the above options. Frequently, you need to change the name.
This is also a common usage. Put multiple files in one folder.
Cp test1 test2 test3/root/tmp
17. I have read a lot of file viewing commands. For example, cat, chloroform, and more, I think it is best to use less. user-friendly design.
The sorting is messy. In fact, I did not sort it out. I just took notes when I learned it myself. In case you forget it.