20135205 Interim Summary of information security system design

Source: Internet
Author: User

Summary of information security system design

------------------------------------------------

GCC parameters:

-o:output, used to specify the file name to generate an executable file

-C: Used to generate a target file (. o) from the source file and prevent the compiler from creating a complete program

-I: Increase the path of the search header file at compile time

-L: Increase the path of the search static connection library at compile time

-S: Generate assembly code files for source files

-LM: A library of libraries named LIBM.A in the directory that represents the standard library

-lpthread: Connecting NPTL-Implemented lines libraries

-std=: Used to specify the version of the C language to use

For example

# Compile the source file test.c into executable program test according to C99 standard

Gcc-o Test Test.c-lm-std=c99

#把源文件test. c conversion to the appropriate assembler source file Test.s

Gcc-s test.c

------------------------------------------------

Man

Man [-ADFHKTWW] [section] [-M path] [-P pager] [-s list] [-M system] [-p string] Title:

MAN-K Instructions/Documents

-K: Use this parameter to list the entire man page and the "found word" related content.

That is, it will find the contents of the left (instruction/filename) and the right (corresponding description) in the same time, as long as it contains "found word" is listed.

Cheat

Cheat has two dependent tools Python and Pip, so before installing cheat, you need to install Python and pip

# yum Install python

# yum Install Python-pip

Download cheat via git:

# apt-get Install git

Then install the Python dependency:

# pip Install docopt pygments

To clone cheat from the Git repository:

# git clone https://github.com/chrisallenlane/cheat.git

Go to cheat directory and run setup.py

# CD Cheat

# python setup.py Install

Installation Complete OK, can view cheat version

# cheat-v

Cheat 2.1.0

Some other configurations of cheat:

Need to configure a default text editor in ~/.BASHRC

# Export EDITOR =/usr/bin/vi

This text editor can be set according to your preferences, can be set other, such as Nano

If you need cheat auto-completion, you can go to git to copy cheat.bash this script:

# wget Https://github.com/chrisallenlane/cheat/raw/master/cheat/autocompletion/cheat.bash^c

# MV Cheat.bash/etc/bash_completion.d/

Cheat can also customize the command's help file according to their own needs, the custom directory by default in the ~/.cheat/directory, we first look at the cheat of the command Help file directory:

# cheat-d

/root/.cheat

/usr/lib/python2.7/site-packages/cheat/cheatsheets

# cp/usr/lib/python2.7/site-packages/cheat/cheatsheets/*/root/.cheat/

We can copy all the files under/usr/lib/python2.7/site-packages/cheat/cheatsheets to/root/.cheat, and you can build your own other commands to help memo files according to your needs.

Yum Configuration

[[Email protected] Desktop]# cd/etc/yum.repos.d/
[[email protected] yum.repos.d]# ls
Packagekit-media.repo Rhel6-yum.repo Rhel-source.repo
[Email protected] yum.repos.d]# vim Rhel6-yum.repo^c

[Rhel6-yum] name = Rhel6-source BaseURL = File =///mnt enabled = 1 Gpgcheck = 0

Emptying the Yum cache

Generate Yum List

------------------------------------------------

Find

Find is the most common and powerful look-up command you can use to find any file you're looking for.

Find uses the following format:

  $ find < Specify directory > < specify conditions > < specify Actions >

-< specified directory;: the directory to be searched and all its subdirectories. The current directory is assumed by default.

-< specified conditions;: The characteristics of the file to be searched.

-< specify actions;: Specific processing of search results.

The locate command is actually another way of writing "Find-name", but much faster than the latter because it does not search for a specific directory, but instead searches for a database (/var/lib/locatedb), which contains all the local file information. The Linux system automatically creates this database and updates it automatically once a day, so you can't find the latest changed files using the Locate command. To avoid this situation, you can manually update the database by using the updatedb command before using locate.

Locate:

  $ locate/etc/sh

Search all files in the ETC directory that begin with SH.

  $ locate ~/m

Search for all files that start with M in the user's home directory.

  $ locate-i ~/m

Searches all files that begin with M in the user's home directory, and ignores case.

Whereis

The Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.

$ whereis grep

Resources:

"In-depth understanding of computer systems"

CSDN Forum

Baidu Encyclopedia

A summary of most of the commands, for the latter part of the study lay the groundwork. Familiarity with basic commands

20135205 Interim Summary of information security system design

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.