Welcome to visit our blog ways to open a terminal
1. Shortcut key
to open the terminal to the amount of shortcut keys: [Ctrl] + [Alt] + [T]
2. The dash home icon searches the dash homepage for terminal to find the terminal.
Open Dash's shortcut key the Windows key will./Add to Path destination
The script file written by test.py, given execution permissions, is executed each time with the following command. Want to save./
./test.py
Become
test.py
1. Temporary Methods
It can be modified in the terminal, but it fails after re-login.
Execute the following command.
Export Path= "$PATH:."
2. Modify the Environment file
Modify the/etc/environment file to be permanently valid. Requires root permission to restart the computer to take effect add in front of other paths
sudo vi/etc/environment
Enter the password to modify the path.
Before modification:
Path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
After modification:
Path= ".:/ Usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games "
Note: Add at the front . Enter the following command to make the configuration effective immediately and avoid restarting the computer.
Source/etc/environment
3. Modify the ~/.BASHRC file
Once saved, the file can be immediately active in the newly opened terminal window. This method is only valid for the current user. At the end of the file, add the following statement
Export path=.: $PATH
4. Modify the profile file
File Location: /etc/profileAfter the file edits are saved, the system restarts and the variables take effect. The variables added in this way are valid for all users. Append to the last side of the file:
Export path=.: $PATH
to install the software source code steps
Divided into 3 steps
./configure make make and install make clean
#Clean up temporary files
Refer to Vim no color rendering problems open vim view load those scripts. In the bottom row mode, enter: Scriptnames. Set the. vimrc file to set the file to the following content.
Set nocompatible "Vim settings, not Vi settings. Must is first
set autoindent "Auto align when insert new line, for instance, when using O or O to insert new line .
Set ruler "Show ruler at the bottom-right of Vim window
set showcmd
set Backspace=indent,eol,start " E Nable Delete for backspace under Insert mode '
colorscheme darkblue
Set number ' Show line number
Synt Ax on
if &term =~ "xterm"
if have ("Terminfo")
set t_co=8
set T_SF=^[[3%P1%DM set t_sb=^[[4
%P1%DM
Else
set t_co=8
set T_SF=^[[3%DM
set T_SB=^[[4%DM
endif
endif
Reference article vim does not use the arrow keys with the BACKSPACE key problem The problem with VIM may be due to the fact that the version is low in 7.3, but these problems do not occur in vim7.4.
Method 1
installs the VIM full version. The full version has a normal keyboard.
Method 2
in the vi-bottom row mode, use the command : Set nocompatible, that is, set VI does not use compatibility mode.
Refer to the article How to configure immediate effect to make configuration effective immediately command source benefits: Do not restart the computer Example 1:
#Enable environment immediately after modification
source / etc / environment
Example 2:
# Make the profile take effect immediately after modification
Source / etc / profile