Linux "dream start point"-general Linux technology-Linux technology and application information. The following is a detailed description. Lesson 1: first of all, instructor Bai asked each of us to give a professional self-introduction of about five minutes (I am the first). It seems simple and contains a lot of skills, good self-introductions can help you during the interview. Next, Mr. Bai elaborated on our career development direction in detail. managers of enterprise MIS 2. integrators (of course, this is just a plan for our training). Here I would like to say a few more words, recently, many school girls asked me the same question: "What can we do after graduation ?"
Yes, but it depends on how you face it. You may find the answer to the following questions. For a while, I am addicted to technology (so far I am still a tech enthusiast). I can even do experiments without going to bed for a week, however, after talking to many business people who have been working for many years, he began to shake his mind and began to doubt his choice. Master Huang said: "Do not stick to a technology, learn a development model, and then draw the opposite picture, any technology is useless from application, "said Jiang." Don't be technical-only. You may be familiar with some management things as soon as you are about 30 years old"
Career thinking: What job do you want to do? What job can you do? What job do you need? Select one of the three (when I graduated
Thanks to me, I do not regret my choice until now. In fact, Talent Selection is based on my job requirements.
To select the right talent, now I have a deep understanding of this.
Technical Thinking: Since the sophomore year, I have been in touch with the Internet. Since then, I firmly believe that technology is a dream (and I am still so persistent). However, in real life, sometimes it will shake your initial thoughts, life is a reality (as for whether it is material first or spiritual first, we will not discuss it here. The benevolent sees benevolence and the wise sees wisdom)
Some good words from teacher Bai and Mr. Huang (professional opinion ):
1. feel at ease when you encounter anything, and rely on yourself;
2. There are only successes and temporary failures;
3. just graduated students should not pay too much attention to their first salary: Bai's personal experience is the best proof of 50%-100%-an increase of or per year (reason: having slept for four hours in three days, don't worry, haha)-Now I have started my own business. I admire Bai's courage and imagine that I will make my own career one day;
4. Never give a problem to a leader. The leader wants multiple-choice questions and multiple-choice questions.
5. send emails to leaders to form good habits (Details determine success or failure). The format is as follows:
Title
Mr. Li:
Hello
1) Problem Description
2) solution:
1.
2.
6. Do not maximize your rights at any time, and minimize your risks to avoid unnecessary troubles.
Lesson 2: There are a lot of basic Linux commands that can be listed by Google or baidu, I will list some of the problems and solutions I encountered in my class with my classmates. I hope they will be useful to you (you can skip this course ).
1. When RHEL5 (redhat enterprise linux 5) is installed with a vmvm, the image mode cannot be entered.
Solution: the memory set by the Vm is too small, at least 256 MB.
2. cd etc General cd commands actually exist by default./That is, the current directory
3. /etc/init. d/rc5.d (my system default startup level is 5) files starting from S at system startup, and loading starts from small to large according to the numbers following S, it corresponds to the PID in the process displayed by Qilin PS.
4. I used to know a lot of Linux commands and should learn to make comprehensive use of them in actual work. For example, when configuring Apache, determine whether the service is started normally or not:
Ps-ef | grep httpd find PID
Netstat-anp | grep pID view port based on PID
Telnet XXX. XXXX. XXX. XXX port
Netstat-an | grep IP (port) check whether the port is LISTENING
5. In solaris and linux, h j k l on the key disk represents the top left, bottom right (in fact, you can use the direction keys in Linux)
6. flexible application of the Tab key can help you check for errors
In the previous article, I forgot to mark the course name every day. Let's add it as follows:
Yirong New Network System Integration Project (Work Manual)
Rongxin Network System Integration Project (Linux origin and basic commands)
Use of shell
2. File permissions and user management
Application installation and management
1 If we use F-ssh to remotely manage machines, garbled characters may occur sometimes.
Solution: # system-config-language, graphical interface, change the language to English
# Reboot
2 after the virtual machine is installed, the default resolution is small and it looks uncomfortable.
Solution: System Tools-hardware-CRT settings-double-click-select the specified resolution
# Rebooe
3. IP address change
Solution: a. # setup graphical interface
B. # vi/etc/sysconfig/network-scripts/ifcfg-eth0, modify
C. #/etc/init. d/network reload
4. query the username and Group of the current logon user.
# Whoami or # groups
5. In linux, directories and files are common files. to access a directory, the permission for this directory must be at least r-x. You can also use numbers to set permissions.
6. chmode can only repair the permissions of the file and directory, but its owner (creator) remains unchanged. It can be modified only through chown.
7. When creating a user, for example, # useradd-g dba-G manager-c "DB administrator"-d/DB user1, In this command, the user name can only be placed after all parameters, otherwise, the parameters have not been passed.
8. Two centOS are recommended. (As Mr. Huang said, it's really nice to have fun playing with various operating systems)
CERNET: ftp: // 202.38.97.230/centos
Very good site: ftp://ftp.net.usf.edu
Australia site, fast: http://www.pacific.net.au/mirror/linux.php
Debian Redhat Fedora Gentoo Mandriva Knoppix SuSE
Slackware Yellow Dog cAos CentOS Ubuntu tinysofa FreeBSD OpenBSD
NetBSD DragonflyBSD archlinux StartCom
9 when installing software with rpm, you can use # make clean to delete the software if any problem occurs in the middle.
There must be a correlation between software. When You Need To uninstall a software in linux, you can use the following command to view its association.
# Rpm-qa | grep software name
# Rl-ql file name
10 common installation commands: rpm-ivh XX. XX. rpm
Common commands for compression: # tar-cvf xx.xx.tar (target file) source file
Common commands for decompression: # tar-zxvf xx.xx.tar.gz is equivalent to # gunzip xx.xx.tar.gz
# Tar-jxvf xx.xx.tar.bz2 is equivalent to # bunzip2-jxvf xx.xx.tar.bz2
Note: Pay attention to the directory during decompression. The # tar xx.xx.tar-C directory can be decompressed to the specified directory, but it seems that you cannot specify the directory in gunzip and unzip2, therefore, it is best to use mv to move the tar package to the specified directory and then parse it.
11 good habits: After installing any software, add "Shortcuts" to facilitate future use and management.
# Vi/etc/profile
Add export PATH = $ PATH:/usr/local/lumaqq/bin (directory of the program) at the end)
# Env | grep PATH
#./Etc/profile execution to make it take effect
# Simply enter the software name.
12 when you use su to switch users, the-u parameter will jump to the user's home directory. If no parameter is added, keep the directory before switching.
Main content:
Iii. OSI Layer-7 model overview. This knowledge is the foundation of the network. Although I had some knowledge of it before, I have heard some new experiences from the lectures by Mr. Bai:
1 The so-called message, datagram, frame, message, and segment all mean a binary sequence (I think a female asked me about the difference between the datagram and the frame, I haven't figured it out for a long time)
2. A real network engineer is thinking about how to quickly and accurately find solutions to problems after they encounter problems.
3. Questions about subnet division: Someone has been asking me this question in forums and groups. Today, I give a clear answer. In actual projects, the 0 and 1 subnets are available, however, in general textbooks, 0 subnet and 1 subnet are required to be subtracted when computing subnets (for students who want to test the network, follow the instructions in the textbook to answer the question. We were doing the same at the time, alas)
Linux system startup and control and disk management
4/etc/rc. d. Several important startup configuration files: init. d, rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d, rc. local, rc. sysinit files are all soft connections (equivalent to setting up shortcuts under/etc), which is crucial for system initialization and loading related scripts (also including/etc/inittab, /etc/fstab)
5. Some suggestions for linux system optimization: Use # To comment out some non-essential services and startup scripts of the system to speed up system startup and running. For example: ca: ctrlaltdel:/sbin/shutdown-t3-r now in/etc/inittab, which is dangerous for the server. We recommend that you disable it.
6. the following command is incorrect because the command is not clear enough: [roo @ root etc] # ls | grep *, this is because grep searches for the content output to the screen rather than the directory, if it is changed to [roo @ root etc] # ls | grep a, all files containing a are displayed. [roo @ root etc] # ls a * is the expected result.
7. When installing the system, remember to set the password for the grub boot guide, which is easy for anyone (Press e when the system is started, enter the edit mode, and then bypass system authentication) directly access the system as a privileged user)
8 in linux. how to effectively use and manage buckets is a very important technology. yesterday afternoon, I was really sleepy. teacher Huang talked about logical volume Management (LVM). I took a nap below and listened to it. I came back and practiced it, the following shows how to create a logical volume (using sdb as an example ):
A. Partition (# fdisk/etc/sdb --- create partition by n --- press P --- enter Partition Number --- input partition size -- OK) to create two partitions: sdb1 and sdb2
B. Create a physical volume (# pvcreate/dev/sdb1/dev/sdb2)
C. Create a physical volume group (# vgcreate volume group logical name/dev/sdb1/dev/sdb2)
D. Activate the volume group (that is, create a logical volume group # vgchange-a y volume group logical name)
E. Create a logical volume (# lvcreate-L size-n logical volume name logical volume group name)
F. Format (# mkfs-t ext3/dev/volume group logical name/logical volume name)
G. Use it (mount it for use. To enable automatic mounting next time, you can add corresponding entries in/etc/fstab)
In this case, run the df-h command to check the mounting status (if you want to detach the instance, first use the # fuser-u/Mount path to check the usage, and then use the # fuser-k mount path, remove it, And then detach the mounted volume)
9. Expand the volume space (uninstall the file system before modification)
# Lvextend-L + 1G/dev/volume group logical name/logical volume name
# E2fsck-f/dev/volume group logical name/logical volume name
# Resize2fs/dev/volume group logical name/logical volume name
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