file Operations
Create folder: MkDir folder name
View folders and files for the current directory: LS
See all files and information under the current folder: Ls-l
Delete empty folder: RmDir folder name
Delete Non-empty folder: RM RF folder name
Delete File: RM file name
Delete all Files under folder: RM *
Modify folder and file names the file name after the change of the MV file name
New (open) a TXT file: VI file name
Open a folder or directory: CD directory
Basic Operation of the system
View Calendar: Cal
Viewing time: Date
To view a running process: PS aux
View each thread in the system: PS-A
system shortcut Keys
Code Compilation Tools
Create project file: VI file name. extension or gedit file name. extension
Compiling C + + code files: g++ file 1.cpp file 2.cpp-o program name
Compiling C + + debug code files: g++-G file 1.cpp file 2.cpp-o program name
Run Program:./program Name
Enter debug mode: GDB
Select the project to debug: File project name
List Current Code information: l
Add Breakpoint: b function name or b code line number B < function name > B *< Function name > B *< Code address >
Run to Breakpoint: R
Stepping into the function body: s
Single-Step debugging: N
View variable values: Print variable name
Run to the last or next breakpoint: C
View stack information: BT
Exit Debug Mode: Q
Installation and uninstallation
software safety loading and unloading, in several cases:
1:rpm Package, this package is like Windows EXE installation files, the various files have been compiled, and hit the package, which file to which folder, all specified, the installation is very convenient, in the graphical interface you only need to double-click to automatically install.
= = How to uninstall:
1. Open a shell terminal
2, because the software name under Linux includes the version number, so it is best to determine the first before uninstalling the full names of the software.
Find RPM Package software: rpm-qaxxx*
Note: XXX refers to the software name at the beginning of a few letters, not required to write the whole, but not wrong, * is a wildcard symbol "*", that is, asterisks, if you want to find the machine installed RealPlayer software, you can enter: Rpm-qa realplay*
3. After the software is found, the full name of the software is displayed, such as firefox-1.0.1-1.3.2
Execute Uninstall command: RPM-E firefox-1.0.1-1.3.2
= = = Install directory, execute command lookup: RPM-QL firefox-1.0.1-1.3.2
= = = Reference article: http://blog.chinaunix.net/article.p...178&blogId=1438
2:tar.gz (BZ or BZ2, etc.) end of the source code package, this package is the source program, not compiled, need to be compiled before installation, installation method is:
1. Open a shell, that is, the terminal
2. Use the CD command to enter the directory where the source code compression package is located
3. Unzip the file according to the package type (* represents the package name)
TAR-ZXVF ****.tar.gz
tar-jxvf ****.tar.bz (or bz2)
4. Use the CD command to enter the unzipped directory
5. Enter the compile file command:./configure (some compression packages have been compiled, this step can be omitted)
6. Then the command: make
7, then the installation file command: Make install
8, Installation completed
= = = How to uninstall:
1. Open a shell, that is, the terminal
2, use the CD command to enter the compiled software directory, that is, the installation of the directory
3. Execute the Anti-installation command: Make uninstall
= = = Install Directory: Note the install directory during the make install command, or read the Readme file in the installation directory, the best way is to specify the installation directory during installation, that is, add the parameter after the./configure command--prefix=/* *,
such as:./configure--prefix=/usr/local/aaaa, that is, the software is installed in the/usr/local/path AAAA directory. The default installation directory for general software in/usr/local or/OPT, you can go there to find
3: Installation package at end of bin, this package is similar to RPM package, installation is relatively simple
1. Open a shell, that is, the terminal
2. Use the CD command to enter the directory where the source code compression package is located
3. Add executable attribute to file: chmod +x ******.bin (middle is letter x, lowercase)
3, execute the command:./******.bin (RealPlayer for Linux is such an installation package)
= = = How to uninstall: Remove The installation directory that you selected during installation to OK
= = = can be specified during the installation process, similar to the installation under Windows.
2. How to execute the software after installation. After installing the software, there are several ways to execute the software:
A, some software installed automatically in the application list to add shortcut keys, and Windows, just go there.
B, if not found in the application list, you can enter the command directly in the/start/Run command: The start command is usually the software name, such as FIREFOX,REALPLAY,XMMS, etc.
C, you can also open a shell terminal, enter the software name, and in the "Run Command" in the same. If you do not know the entire command, you can enter the beginning of the letter, and then press the TAB key to find, the system will automatically display to enter the letter beginning with all the commands/
D, you can also run the boot file directly into the installation directory, Linux executable icon and shell Terminal icon very much like
E, to the/usr/bin directory to find the installed software startup file Execution command. The Linux system has all the executable file commands in the/usr/bin directory to start the connection, you can go to that directory to find the file you installed Start command, double-click Start
Reference: Http://soft.zdnet.com.cn/software_zone/2008/0513/858582.shtml
Some operations under Linux (continuous update)