Having a memory lapse:
If I redefine a command using an alias or a function - How do I access the "real" command without specifying an absoulte path:
i.e.
function man
{
/usr/bin/man |more
}
alias ls='/usr/bin/ls -l'
How do I specify the ls or man command above without the... (6 Replies)
how do I alias the following command:
ls -l |egrep 'drw|dr-|d--|d-w'
The alias command needs single quotes and so does the above command, so this does not work:
alias LSDIR 'ls -l |egrep 'drw|dr-|d--|d-w' '
My problem is how do I get a listing of only directories?
Solaris 8
SUN Ultra 10... (4 Replies)
Hello, I am trying to set an alias in my .kshrc or .profile and when I do it is not setting. If I do it manually it works fine. Is there another file I should put this in? Here is the alias I am using.
alias ll='ls -ltr'
I am using solaris 9. When I type alias it does not show these... (5 Replies)
I am new to unix and therefore I did a lot of reading before posting. So please, if this has been answered before, forgive me for re-posting and point me to the right place for the answer. I have spent many hours searching the net and read over 50 posts in this forum and even tried a few thing but... (20 Replies)
Hi Friends,
I have added some aliases in .bash_profile file under the root folder. Its works fine and very useful, but does not go well with cp command.
alias deploy="cd /usr/local/tomcat/webapp"
alias artifacts="cd /usr/local/artifacts"
but when i try to cp from artifacts folder... (2 Replies)
Iam facing some strange issue with alias. I have an alias file in which i have created lot of aliases as given below.
export BUILD_HOME=/apps/psr/build
export DB_HOME=/apps/psr/database
export LOGS_HOME=/apps/psr/logs
export BUILD_TEST=/apps/psr/build_dev/build_test
export... (0 Replies)
Hi,
I'm on Solaris (SunOS wsp2cm01 5.10 Generic_150400-10 sun4v sparc SUNW,Sun-Fire-T200). Trying to set up an alias like below -
alias grep="/usr/xpg4/bin/grep"but when I call grep in my command it ignores my alias & uses /usr/bin/grep instead. The problem with /usr/bin/grep is that it doesn't... (24 Replies)
Hi ,
Using bash shell (mintty) in cygwin/windows env. for some time and having issues with most basic commands.
Will be quite easy to get er done once I know how , just like magic tricks. I need either alias OR shell script to change windows to posix path AND put that line back -input OR .cd to... (2 Replies)
I have several shell scripts which contain the nawk command.
Here is what i m doing assign the correct value to nawk as nawk is not found on a new systems.
Here is what i did.
more test.sh
] && alias nawk=/usr/bin/gawk
] && alias nawk=/usr/bin/nawk
] && alias nawk=/usr/bin/awk... (7 Replies)
Hi,
I have the following aliases:
$: alias | grep "^du="
du='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn'
$: alias | grep "^dutop10="
dutop10='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn | head... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT HPUX
mkfontdir
MKFONTDIR(1) General Commands Manual MKFONTDIR(1)NAME
mkfontdir, fonts.dir, fonts.scale, fonts.alias - create an index of X font files in a directory
SYNOPSIS
mkfontdir [directory-name ... ]
DESCRIPTION
For each directory argument, mkfontdir reads all of the font files in the directory searching for properties named "FONT", or (failing
that) the name of the file stripped of its suffix. These are converted to lower case and used as font names, and, along with the name of
the font file, are written out to the file "fonts.dir" in the directory. The X server and font server use "fonts.dir" to find font files.
The kinds of font files read by mkfontdir depend on configuration parameters, but typically include PCF (suffix ".pcf"), SNF (suffix
".snf") and BDF (suffix ".bdf"). If a font exists in multiple formats, mkfontdir will first choose PCF, then SNF and finally BDF.
The first line of fonts.dir gives the number of fonts in the file. The remaining lines list the fonts themselves, one per line, in two
fields. First is the name of the font file, followed by a space and the name of the font.
SCALABLE FONTS
Because scalable font files do not usually include the X font name, the file "fonts.scale" can be used to name the scalable fonts in the
directory. The fonts listed in it are copied to fonts.dir by mkfontdir. "fonts.scale" has the same format as the "fonts.dir" file.
FONT NAME ALIASES
The file "fonts.alias", which can be put in any directory of the font-path, is used to map new names to existing fonts, and should be
edited by hand. The format is two white-space separated columns, the first containing aliases and the second containing font-name pat-
terns. Lines beginning with "!" are comment lines and are ignored.
If neither the alias nor the value specifies the size fields of the font name, this is a scalable alias. A font name of any size that
matches this alias will be mapped to the same size of the font that the alias resolves to.
When a font alias is used, the name it references is searched for in the normal manner, looking through each font directory in turn. This
means that the aliases need not mention fonts in the same directory as the alias file.
To embed white space in either name, simply enclose it in double-quote marks; to embed double-quote marks (or any other character), precede
them with back-slash:
"magic-alias with spaces" ""font name" with quotes"
regular-alias fixed
If the string "FILE_NAMES_ALIASES" stands alone on a line, each file-name in the directory (stripped of its suffix) will be used as an
alias for that font.
FILES
fonts.dir List of fonts in the directory and the files they are stored in. Created by mkfontdir. Read by the X server and font
server each time the font path is set (see xset(1)).
fonts.scale List of scalable fonts in the directory. Contents are copied to fonts.dir by mkfontdir.
fonts.alias List of font name aliases. Read by the X server and font server each time the font path is set (see xset(1)).
SEE ALSO X(1), Xserver(1), xfs(1), xset(1)X Version 11 Release 6.1 MKFONTDIR(1)