When renaming a file in a Linux environment, if the renamed file name is the same as the file name that already exists under the current path, the renamed file overwrites the file content of the same name;For example: New file Testfile1, content is
Note: For more information on how to import Hadoop source into eclipse see HTTP://PAN.BAIDU.COM/S/1EQCCDCM
First, Hadoop configuration software (My computer is Windows7 flagship--64bit)
1. VMware dedicated CentOS image (CentOS is one
?? The NL command is used in the Gnu/linux system to calculate the line number of a file. NL can automatically add a line number to the output file content. The default result is somewhat different from "Cat-n", where NL can do more display design,
(not regularly updated in ... )1. Switch between normal user and rootSu Root2. Set a new root user passwordsudo passwd rootThen enter the new root user password3. Common compression commandsFormat Introduction*.z Compress Program Compressed
How to partition in linux
Lab environment: ubuntu 12.04 LTS
1. Disconnect the VM and add a hard disk.
Scsi recommended
2. view the new Hard Disk:
Fdisk-l includes a USB flash disk.
brave@ubuntu:~$ sudo fdisk -l
Disk/dev/sda: 42.9 GB, 4294967296
Install linux on the network
1. Install tftp-server ftp hdcp on another server
Yum install tftp-server vsftpd dhcp-y
During installation, the dependency is automatically checked and the xinetd (super daemon) is automatically installed.
2. Configure
View Linux kernel, cpu, memory, and other information.
1. view the system kernel version command
Uname command uname-a uname-r uname-v
Vim/proc/version
More/etc/* release
More/etc/issue
2. View cpu Information
More/proc/cpuinfo
3. view the
Linux Process Control commands and linux Process commands&
At the end of a command, you can put the command in the background for execution, such as gftp &.
Ctrl + z
You can put a command that is being executed in the foreground to the background,
Set DNS server in CentOS7
In CentOS 7, manually set the DNS in/etc/resolv. conf. After a while, the system will overwrite or clear the DNS. Different from setting DNS in CentOS 6, there are several methods: 1. Use the new command line tool nmcli to
2 TB or above hard disk installation centos6.2 x64For Centos6, because the redhat patch has been installed, it is relatively simple to use it to support GPT. 1. During system installation, when you can log on to the second Console (Ctrl +) Alt + F2 (
List all installed software packages in Linux
The method to list all installed packages depends on the release version you are using and the package manager.
In this tutorial, we will provide commands for mainstream releases.
Note: You can use an
Centos7 modify run levelSystemd uses a more free target concept than the sysvinit runtime level as an alternative to the third runtime level: multi-user.target fifth runtime level: graphical.targetruntime the front is a symbolic chain pointing to
CentOS7-systemd ServiceSystemd is a service management program that integrates the functions of service and chkconfig. It can enable or disable services permanently or only in the current session. # View the running service systemctl # start, stop,
How to partition in linux
Lab environment: ubuntu 12.04 LTS
1. Disconnect the VM and add a hard disk.
Scsi recommended
2. view the new Hard Disk:
Fdisk-l includes a USB flash disk.
brave@ubuntu:~$ sudo fdisk -l
Disk/dev/sda: 42.9 GB, 42949672960
Install linux on the network
1. Install tftp-server ftp hdcp on another server
Yum install tftp-server vsftpd dhcp-y
During installation, the dependency is automatically checked and the xinetd (super daemon) is automatically installed.
2. Configure
Common Linux commands (version 2)-permission management commandsPermission management commands
1. chmod [change the permissions mode of a file]:/bin/chmod
Syntax: chmod [{ugo} {+-=}{ rwx}] [file or directory name] // intuitive
E.g. chmod u + wx
Common Linux commands (version 2) -- Shell application skillsShell application skills
TIPS:
1. Command completion function: key
2. Clear screen: Ctrl + l
3. Delete all content before the cursor: Ctrl + u
4. Command history: history
At this time :!
Centos disables root user ssh remote loginIn CentOS, root has almost all permissions. Once the root user password is leaked, it will be a fatal threat to the server and prohibit root users from remotely logging on through ssh, in this way, even if
Centos6.5 disable the NetworkManager service
System: centos6.5 mini desktop
The following error occurs when you restart the NIC after installation.
[Root @ localhost ~] # Service network restart
Closing interface eth0: device status: 3
Linux/MAC Service Management(1) common port occupation query command: lsof netstatInstance: lsof-I: 80 netstat-an | grep 80 netstat-an | grep LISTEN
Common commands:Crontab
Common optionsCrontab-l view all scheduled tasks crontab-e add and edit
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