#whereis [Options] [command name] feature: The path where the search command resides and its help document location
Options:-B get command location only;-M get help document location only
#which [command name]
Function: Search the path and alias
preparatory workLinux system by default, firewall software is open, almost all ports are not developed, the spark cluster of communication between the nodes need to use the relevant ports, such as Master node--webui-port:8080, The communication
First, preliminary preparation:
1. Create SSH Key
In the user's home directory, see if there is an. SSH directory, and if so, look at this directory there are no Id_rsa and id_rsa.pub these two files, if already have, can jump directly to the next
1 Development Environment
Host: Ubuntu14.04 (32bit)
Development Board: Mini2440
kernel:2.6.39.4
busybox:1.24.2
2 Creating a directory
(1) Create the root directory Rootfs, which is the directory to be ported to the Mini2440 Development Board:
mkdir
Linux very useful 20 commands
1. ls command The LS command is the meaning of listing directory contents (list directory Contents). Running it is to list the contents of a folder, possibly a file or a folder.
1
Function Description: Remove the file system.Syntax:umount [-ahnrvv][-t ][file system]Supplemental Note: Umount can dismount the file system currently attached to the Linux directory.Parameters-A dismount all file systems recorded in the/etc/mtab.-h
Linux VI Replacement string
1. Basic replacement: s/vivian/sky/replaces current line first Vivian for Sky: S/vivian/sky/g replaces current line all Vivian for Sky: N, $s/vivian/sky/replaces the first n line to the top Vivian for each line in the
Serial output
1) Edit the/boot/grub/grub.conf file at the end of kernel to add the following:
Console=ttys0,115200n8
2) Modify Securetty
echo "TtyS0" >>/etc/securetty
3) Edit/etc/init/ttys0.conf, after specifying CONSOLE=TTYS0 in the Grub boot
In Linux systems, PER-CPU variables are used in SMP systems to generate a copy of a variable for each CPU to avoid locking problems in multiprocessor mutexes. The other is CPU-local variables that take full advantage of the CPU's hardware caching
First, the implementation of a network card configured into multiple IP addresses.
Linux network device configuration files are stored in the/etc/sysconfig/network-scripts, for the first Ethernet network device, the profile name is generally
#include
#include
int main ()
... {
if (fork () = = 0)
... {
printf ("Child Process say hello to you!");
Sleep (5);
Exit (0);
}
Else
printf ("Parent Process, Hello");
return 0;
}
1: You typically use GDB to debug a subprocess by inserting the
1. View the number of ports in each state;
While true;
do
date;
Netstat-n | awk '/^tcp/{++state[$NF]} end {for (key) print key, "\ T", State[key]} ' I;
Sleep 2;
Done
Or
time=5;
While true;
Do
Use the way, divided into graphical interface of the way, such as: Windows System. Character interface of the way (command-line operation), Linux system.
Shell and shell windows (Shell terminal)
Open the shell terminal, CTRL + ALT + T position: Use
1, just initialize the Linux host, the new user after the landing report connection closed
hadoop@cnsz0804 ' s Password:Connection Closed by 10.12.25.114
2, check/var/log/secure found the following error
Feb 16:36:26 cnsz0804 sshd[15800]:
arm-linux Cross Compiler productionThis article introduces the use of Crosstool-ng tools to make Arm-linu cross compiler, about crosstool-ng not to speak more (can Baidu), the following to s5pv210 processor as an example of the production process.
I.
Tool ResourcesSeven Linux command-line tools that you may never have heard of, but extremely useful Linux traffic monitoring tools-iftop (most comprehensive iftop tutorials)
Basic Knowledge
1. FPM
①FPM several steps to easily package rpm②FPM made
Linux supports a growing number of file systems and how to distinguish between file system types on different partitions. You can refer to the following methods (assuming that you want to determine the partition of the file system type is SDA1): Use
Introduction to xorg.conf files in Linux systems
First look at a complete xorg.conf file, as follows:
[XHTML] View Plain copy # /.../ # sax generated x11 config file # created on: 2009-05-31t19:02:32+0800. # # Version: 8.1 # contact:
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