|
Search:
Advanced search
|
Browse by category:
|
Contact Us |
| Sub Categories | |||||
|
Scripting (3) |
|||||
|
Showing: 1-9 of 9
Articles
|
||||
|
VI editor Backup (VIB) Utility
CURRENT RELEASE: v1.9
INSTALLATION:
1. Verify the path to bash or ksh is the path on the first line of VIB
i.e. #!/usr/bin/bash
# cp...
|
||||
|
||||
|
E:Lists directory /var/lib/apt/lists/partial is missing.
When installing apt-get and attempting to run an update if you receive the following:
[root@amd-x64-21-64 apt]# apt-get update
E: Lists...
|
||||
|
||||
|
Regular Expression to Escape all Illegal (non alphanumeric) Characters Except a space
I created the following functions which I found to be the easiest way to escape all illegal characters.
To escape all illegal (non alphanumeric)...
|
||||
|
||||
|
Quick One liners to test a string whether or not it is an Integer, Alphanumeric, or Character
*note:
Solaris egrep flag = "-e"
Linux egrep flag = "-E"
To test a string whether or not it is...
|
||||
|
||||
|
Using Awk to display a directory listing on files with spaces until the end of line
There are situations where when performing an ls -Al displays files with spaces....
|
||||
|
||||
|
UNIX Command Line way to convert HEX ascii codes to Text
# echo "48 45 4C 4C 4F 4A 55 53 54 41 46 52 49 45 4E 44 4C 59 52 49 44 44 4C 45" | perl -nle 'print join "", map { chr hex $_ }...
|
||||
|
||||
|
Restoring the cursors last position in the VI (VIM) editor
To add Colors, line numbers, and restore the cursors last position in the VI editor, you place the following into a .vimrc file in your $HOME...
|
||||
|
||||
|
Postfix/Sendmail Errors: NOQUEUE: reject: RCPT .... Relay access denied DSN: Service unavailable
If you are noticing the following in your error logs:
Aug 3 09:30:05 usindgso01d postfix/smtpd[20439]: [ID 197553 mail.info] connect from...
|
||||
|
||||
|
Display path, user name, and host name next to the cursor in the .bashrc or .bash_profile
Append the following line
PS1="\w\n[\u@\h]\\$ "
to obtain:
# bash
/usr/local/apache/htdocs/gsc
[root@indgso01d]#
|
||||
|
||||
Powered by
KBPublisher (Knowledge base software)