Familiar with RedHat 9.0

Source: Internet
Author: User

Common commands:
1. ls, LS-
2. pwd
3. ps, PS-
4. CD, CD ..
5. mkdir
6. rmdir
7. rm? -RF
8. ifconfig
9. files before compression after tar-CZF compression; files after tar-xzf Compression
10.
1. Run the command: gzip-D filename to decompress the compressed file ending with .gz.
When the contents are recorded, but no .gz is available.
2. Use the command tar-xvf filename to expand the file whose end is .tar.
In the same directory as the source file, only .tar is missing.
3rd, files ending with .tar.gz are the most common. You can run the following command: gzip-CD filename | tar xfv.
.

11. Find-name ***; locate ***;
12. Man command
13. Start setup
14. adduser/passwd create user
15. su command switch user
16. Mount access to other partitions

VI command:
1. Press I to enter the insert mode, and ESC to exit the insert mode.
2. Insert the entity I, delete the character X, and delete a row of DD.
3. Search for strings/strings
4. Read File VI file name
5. Write File: W
6. Exit the file: Q
7. Copy the row YY and paste P

GCC, make, and GDB problems:
GCC parameter:-C-g-o
Makefile: note that tab
GDB: Break (add breakpoint), step (enter), finish (exit), next (next line, do not enter), C (execute to next breakpoint)

C/C ++ development tool: Eclipse

Tar parameter:-z (gzip mode)-X (extract decompression)-V (list display)-f (compressed package)-C (Compressed)

Rpm parameter:-I (installation)-Q (query)-P (Package)-H (hash display)-E (erase)-U (upgrade)
For example, run the rpm-QPI Linux-1.4-6.i368.rpm to view the content in the package
Rpm-IVH Linux-1.4-6.i368.rpm Installation
Rpm-E <File Name> uninstall
Rpm-uvh <File Name> Upgrade Software

Start analysis:
Initialize the device-load the kernel image-load the File System

Custom system call:
1. Add <Linux/unistd. h> + _ syscall0 (INT, mysyscall) + custom system functions
2. Add the index number # DEFINE _ nr_mysyscall 223 in unistd. H (/usr/include/asm-i386/unistd. h)
3. Add. Long sys_mysyscall to syscall_table.s (/usr/src/Linux/ARCH/i386/kernel/syscall_table.s ).
4. Implement the sys_mysyscall function in SYS. C (/usr/Linux/kernel/sys. c)
5. Compile the kernel (/usr/src/Linux)
Make mrproper
Make menuconfig
Make
Make modules_install
PS: udfs-> use the _ syscall0 macro (in the unistd. define in h) Call Soft Interrupt-> Find unistd. H and syscall_table.s, locate the interrupt number-> entry. s Assembly execution-> call the corresponding. run the c file (sys. c)

// Use arm-Linux-GCC to compile
Export cc = arm-Linux-gcc
./Configure -- Host = arm -- Build = i686 -- target = Arm \ -- With-GTK-Exec-Prefix =/usr/local/hybus-arm-linux-R1.1

// USB to serial drive command
/Root/redhat9 make Inst

Mkdir/root/AAAA/BBBB
CD! $ (! $ Indicates the last parameter of the previous command, namely/root/AAAA/BBBB)

Gedit & (& indicates that this command is run in the background)

Locate filename (locate the file location using the locate command)

Ls-L> filename (> indicates that the result is saved in filename, <indicates that the content in filename is used as input)

PS (display all processes of the current user)

Setup (graphical configuration command)

Chkconfig -- List (displays the running status of system services)

Grep "string"-R (search for files containing strings)

Problem:
Simulator Skyeye

 

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.