Shortcut thing?

Thread Tools Search this Thread
# 1  
Shortcut thing?

Hey, im new to Linux...totally new.

I know there is a way to assign a type of variable or something to a directory, so instead of having to type "cd /var/www" etc, I could just assign a variable to the directory, so I could just do "cd $assignedvar" and it would be there...if you get what I mean? Any help would be great, thanks.

Edit: Nm folks, I kinda found it in my book..

$ www=/var/www/htdocs ; export www

$ cd $www


Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #443
Difficulty: Easy
FHM, a men's lifestyle magazine, asked 1,344 women if they preferred to hang out with a computer science expert or a footballer, and 1,023 (76.116%) stated they preferred geeks over athletes.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

List of Aliases/Shortcut Characters

I'm looking for a list of the bash aliases. I have found commands that list aliases and expand current lines to show actual value. This is not what I want. I have been told . is an alias for source, similarly & is fork. How can I list all these special character aliases? Or does a list exists... (1 Reply)
Discussion started by: mattrm
1 Replies

2. Shell Programming and Scripting

Creating a shortcut

Hi, I want to match a column of one file with many others and take the average of each one and put them into one file (I know sounds complicated). so the 1st file is just a list of names that I want to match with the 2nd file that have names along with rows of values. awk... (4 Replies)
Discussion started by: kylle345
4 Replies

3. Solaris

How to create a shortcut for Openoffice?

Hello all, I am facing some problem after installing the Openoffice in Solaris 10. The installation is successful but i cannot find any icon or shortcut on both Application and Desktop... please help me on this.... (8 Replies)
Discussion started by: aungyepaing
8 Replies

4. UNIX for Dummies Questions & Answers

Shortcut keys are not working

Hi all, I use the shortcut keys CTRL-a and CTRL-e to move cursor to start and end of line in shell prompt alot. But recently what happened to my system i don't know only CTRL-a is working not CTRL-e . If i press CTRL-e any other window in that desktop pop's up. Can any1 tell me how to correct... (2 Replies)
Discussion started by: vio719
2 Replies

5. UNIX for Dummies Questions & Answers

Comparison operators: shortcut name

There are a number of comparison operators used in scripting and programming languages, such as the following: =, ==, ===, !=, =~, <, >, <=, >=, etc Is there a shortcut name for them, such as one has for as being any capital letter? If not, it would mean that I would have to list them all for a... (2 Replies)
Discussion started by: figaro
2 Replies

6. UNIX for Advanced & Expert Users

All Shortcut key combinations

Hi, I am using the Korn-Shell (ksh) and would like to know all the shortcut keys. For example: Shift + Insert etc. Thank you very much. Take care (0 Replies)
Discussion started by: --crimson--
0 Replies

7. Shell Programming and Scripting

Is there a shortcut in awk?

Is there a key board shortcut in vi editor to allow me to find the next ( or { that are corresponding to the first one? Thanks! It's % sign. (1 Reply)
Discussion started by: whatisthis
1 Replies

8. UNIX for Dummies Questions & Answers


Dear Friends How i make shortcut in Tru64 unix for example make a shortcut for mail , i want to make a shortcut under / root the bath for mail # cd /var/spool/mail Regards, (1 Reply)
Discussion started by: fmmq
1 Replies

9. UNIX for Dummies Questions & Answers

Shortcut to home directory?

Also, Wherever you are exploring files in the UNIX structure you can jusy type "cd". This will take you to your home directory. Hope that helps. Cheers! (4 Replies)
Discussion started by: guest100
4 Replies

10. UNIX for Dummies Questions & Answers

shortcut in unix?

Sorry, anybody here knows how to make a shortcut in unix? Thanks. Sebastian. (4 Replies)
Discussion started by: seba
4 Replies
ppmtoilbm(1)						      General Commands Manual						      ppmtoilbm(1)

ppmtoilbm - convert a portable pixmap into an ILBM file SYNOPSIS
ppmtoilbm [-maxplanes|-mp N] [-fixplanes|-fp N] [-ham6|-ham8] [-dcbits|-dcplanesrgb] [-normal|-hamif|-hamforce|-24if|-24force| -dcif|-dcforce|-cmaponly] [-ecs|-aga] [-compress|-nocompress] [-cmethod type] [-mapppmfile] [-savemem] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces an ILBM file as output. Supported ILBM types are: Normal ILBMs with 1-16 planes. Amiga HAM with 3-16 planes. 24 bit. Color map (BMHD + CMAP chunk only, nPlanes = 0). Unofficial direct color. 1-16 planes for each color component. Chunks written: BMHD, CMAP, CAMG (only for HAM), BODY (not for colormap files) unofficial DCOL chunk for direct color ILBM OPTIONS
Options marked with (*) can be prefixed with a "no", e.g. "-nohamif". All options can be abbreviated to their shortest unique prefix. -maxplanes | -mp n (default 5, minimum 1, maximum 16) Maximum planes to write in a normal ILBM. If the pixmap does not fit into <n> planes, ppmtoilbm writes a HAM file (if -hamif is used), a 24bit file (if -24if is used) or a direct color file (if -dcif is used) or aborts with an error. -fixplanes | -fp n (min 1, max 16) If a normal ILBM is written, it will have exactly <n> planes. -hambits | -hamplanes n (default 6, min 3, max 16) Select number of planes for HAM picture. The current Amiga hardware supports 6 and 8 planes, so for now you should only use this values. -normal (default) Turns off -hamif/-24if/-dcif, -hamforce/-24force/-dcforce and -cmaponly. Also sets compression type to byterun1. -hamif (*) -24if (*) -dcif (*) Write a HAM/24bit/direct color file if the pixmap does not fit into <maxplanes> planes. -hamforce (*) -24force (*) -dcforce (*) Write a HAM/24bit/direct color file. -dcbits | -dcplanes r g b (default 5, min 1, max 16). Select number of bits for red, green & blue in a direct color ILBM. -ecs (default) Shortcut for: -hamplanes 6 -maxplanes 5 -aga Shortcut for: -hamplanes 8 -maxplanes 8 -ham6 Shortcut for: -hamplanes 6 -hamforce -ham8 Shortcut for: -hamplanes 8 -hamforce -compress (*) (default) -cmethod none|byterun1 Compress the BODY chunk. The default compression method is byterun1. Compression requires building the ILBM image in memory; turn- ing compression off allows stream-writing of the image, but the resulting file will usually be 30% to 50% larger. Another alterna- tive is the -savemem option, this will keep memory requirements for compression at a minimum, but is very slow. -map ppmfile Write a normal ILBM using the colors in <ppmfile> as the colormap. The colormap file also determines the number of planes, a -max- planes or -fixplanes option is ignored. -cmaponly Write a colormap file: only BMHD and CMAP chunks, no BODY chunk, nPlanes = 0. -savemem See the -compress option. BUGS
HAM pictures will always get a grayscale colormap; a real color selection algorithm might give better results. On the other hand, this allows row-by-row operation on HAM images, and all HAM images of the same depth (no. of planes) share a common colormap, which is useful for building HAM animations. REFERENCES
Amiga ROM Kernel Reference Manual - Devices (3rd Ed.) Addison Wesley, ISBN 0-201-56775-X SEE ALSO
ppm(5), ilbmtoppm(1) AUTHORS
Copyright (C) 1989 by Jef Poskanzer. Modified October 1993 by Ingo Wilken ( 31 October 1993 ppmtoilbm(1)

Featured Tech Videos