Getting started with linux

Source: Internet
Author: User
Getting started with linux-general Linux technology-Linux technology and application information. For more information, see the following section. Author: opmetic

Speaking of getting started linux, I was still in my sophomore year. Because I participated in a competition in the school, I installed a RedHat9 program in linux. Later I heard that it has not been updated, and the school lab has changed to SUSE. I spent a year playing suse, but I didn't use linux any more. Recently, I was excited and wanted to go back to linux. I first installed ubuntu7.03 on IBMT40. I was amazed at the Development. It was only a year before, but the development of linux was really fast. 3D desktop was called!

Yes. My computer is a little low and I am still a second-hand computer. I recently changed fedora9, which is said to be the latest kernel. In fact, I don't understand it at all. I am ashamed to say that linux has not played the kernel for so many years and has failed! I entered linux and found that I could not do anything! So, write down what I have done here so that I can forget it later and find it. I have done this before!

For source code installation, delete the installation directory directly. For rpm installation, uninstall rpm-e -- force -- nodeps.

Gcc-v view gcc version

/Etc/hosts local domain name resolution

View the linux version
Uname-a or uname-r

Env view all environment variables

Tar-xvzf xxx.tar.gz decompress a xxx directory.

Vi/etc/sysconfig/i18n view Character Set

Netstat-antp view port status

Ifconfig

Locale view the current environment

Data viewing time

Export LANG: zh_CN.UTF8

Files downloaded from yum are stored in/var/cache/yum, but are automatically deleted. You can change the value of keepcache in/etc/yum. conf to 0/1.

Reset Password 1. Enter user 2. Reset Password

Svn checkout path svn downloads files under path to current path

Yun install enca; to install enca
Enca is an Extremely Naive Charset Analyser

For example:
# Enca abcd.txt
Simplified Chinese national Standard; GB2312

In emacs, if you want to change the file encoding, enter the full text first, then press M-x, encode-coding-region, and select UTF-8, you can convert the file encoding to UTF-8;

The King of interstellar translation is the Kingsoft in linux, and it is easy to use open source.
You can download fc from the official website and install yum.
Official Website: http://stardict.sourceforge.net/cn/
Download dictionary http://stardict.sourceforge.net/cn/Dictionaries_zh_CN.php here after installation
Install the SDK as follows:
Tar.bz2 version:
# Tar-xjvf a.tar.bz2
Mv a/usr/share/stardict/dic

After wine is installed with yum, there are about 10 components, so you need to uninstall them together.
Rpm-qa | grep wine # list all wine-related programs or components
Rpm-e XXX # uninstall one by one

Restart Apache to stop the service:
Cd/etc/init. d
./Httpd start // start
./Httpd restart // restart
./Httpd restart // stop

Start Apache automatically
Cd/sbin
./Chkconfig -- level 5 httpd on

./Chkconfig -- list to check whether Automatic startup is enabled.

Configuration
Cd/etc/httpd/conf
Vi httpd. conf

The site directory is/var/www/html/

Mysql startup
Cd/etc/init. d
./Mysqld start
Related Article

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.