Ssh login is not performed. bashrc solution: recently, when logging on to a remote server, we found that. bashrc cannot be executed. in bashrc, the configured auto-completion and ls color were not executed. it was very depressing. after reading a lot of information online, I suddenly realized that... ssh login is not performed.
directly decompress http://download.csdn.net/detail/u010026901/7592581Cd/usr/localTAR-ZXVF go1.1.2.linux-386.tar.gz (move the installation package to this directory first)3. Installation$ cd go/src,$./all.bashRun the bash script and get your operating system and CPU information if it works, automatically compile the installation4. Configure ~/.BASHRC (personal user environment) or/etc/profile (Global environment)Note the last two lines, address Goroo
Recently I had to work on centos because it was the Linux graphic desktop that the customer requested.
However, centos has few usability considerations. The default. bashrc and. vimrc are not easy to use at all.
I had to copy. bashrc and. vimrc on Ubuntu. Fortunately, there was something like VMware.
Every time VMware helped me a lot, I still use pirated copies.
No. Paste the commonly used.
/ETC/PROFILE,/ETC/BASHRC is the system Global environment variable setting~/.PROFILE,~/.BASHRC private environment variable settings in the user home directoryWhen a shell process is acquired while logged into the system, it has three steps to read the Environment profile1 first read the Global environment variable profile/etc/profile, and then read the additional set of documents according to its contents,
Release Https://go.googlecode.com/hg/go
If you use the installation package to directly decompress http://download.csdn.net/detail/u010026901/7592581
Cd/usr/local
TAR-ZXVF go1.1.2.linux-386.tar.gz (move the installation package to this directory first)
3. Installation
$ cd go/src,$./all.bash
Run the bash script and get your operating system and CPU information if it works, automatically compile the installation
4. Configure ~/.BASHRC (personal
#/ETC/BASHRC# is we an interactive shell? Is it an interactive shell?# System wide functions and aliases//systems features and aliasesFor example, you set individual namesAlias ' xix ' = ' Date 'When you type XIX, the system displays the information for the command date. (output only after typing) interaction#It ' s much better to create a custom.sh shell script in//Custom script best written here#/etc/profile.d/#/etc/profile# System wide environment
Linux terminal prompts Information Format modification/etc/bashrc
Gedit/etc/bashrc
The default special symbols in the shell environment mean:\ D: represents the date, in the format of weekday month date, for example: "Sun Sep 18"\ H: complete host name. For example, if my machine name is redhat. linux, this name is fc4.linux\ H: only the first name of the host. For example, redhat. linux and. linux are om
Because in the original article Bo Master said the following is a netizen said, so I just add a turn, can not find the original author/ETC/PROFILE,/ETC/BASHRC is the system Global environment variable setting~/.PROFILE,~/.BASHRC private environment variable settings in the user home directoryWhen a shell process is acquired while logged into the system, it has three steps to read the Environment profile1 fi
Gedit/etc/bashrcThe default special symbolic meaning in the shell environment:\d: Represents the date, in the format weekday month date, for example: "Sun Sep 18"\h: The full host name.For example: My machine name is: Redhat.linux, then this name is Fc4.linux\h: Only the first name of the host is taken, as in the example above, then Redhat.linux,.linux is omitted\ t: Display time in 24-hour format such as: HH:MM:SS\ t: Display time in 12-hour format\a: Display time in 24-hour format: hh:mm\u: Cu
Gedit/etc/bashrcThe default special symbolic meaning in the shell environment:\d: Represents the date, formatted as weekday month date, for example: "Sun Sep"\h: The full host name. For example: My machine name is: Redhat.linux, then this name is Fc4.linux\h: Only the first name of the host is taken, as in the example above, then Redhat.linux,.linux is omitted\ t: Display time in 24-hour format such as: HH:MM:SS\ t: Display time in 12-hour format\a: Display time in 24-hour format: hh:mm\u: Curre
file property is copied instead of the file itself;-F: For force, if the target The file already exists and cannot be opened, then it is removed and then tried again;-I: if the target file (destination) already exists, it will ask for the action to be made (common)-L: Create the link
(symbolic link), which is to create a "shortcut"ExampleExample one: Copy the. BASHRC from the home directory to/TMP under root, and rename it to BASHRC[Email protected] ~]#CP ~/.BASHRC/TMP/BASHRC[Email protected] ~]#cp-i ~/.BASHRC/TMP/BASHRCCp:overwrite '/TMP/
first command of the--touch command.1. Touch Command (modify file time and create new file)[[email protected] ~]# touch [-ACDMT] file options and Parameters: -A: Revise only access time;-c : Only when the file is modified, if the file does not exist, do not create a new
link file (symbolic link), i.e. "shortcut" files;-U: Upgrade destination If destination is older than source.Finally, note that if the source file has more than two, then the last destination must be "directory". Replication (CP) This command is very important, the different people run this command will have different results, especially the-a,-p option, for different identities, the difference is very lar
We know how to change the user group and owner of a file. When should we use chown or chgrp? Maybe you think it's strange? Yes, sometimes it is necessary to change the owner of the file. The most common example is to use the simplest cp to explain when copying the file to another person:
[Root @ linux ~] # Cp
Suppose you want to copy the.
17:54/etc/man. config
# Ls-l -- time = ctime/etc/man. config
-Rw-r -- 1 root 4617 Sep 4 18:03/etc/man. config
By default, ls displays the mtime of the file, that is, the last time the file content was changed.
# Touch [-acdmt] File
Options and parameters:
-A: only modify accesstime;
-C: only the time when the file is
": Find by file name, character case insensitive; name Ignore case -user USERNAME: According to the owner of the search; -group GRPNAME: Search according to genus Group; -uid uid; #按照Uid to find -gid GID; #按照gid来查找 -nouser: Find files that are not owned by the master; -nogroup: Find files without a group; Combination Lookup criteria: -A: With -O: Or -not,!: Non- 3, summarize the content of bash environment variable; Bash Environment configuration: con
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.