Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Creating a Shortcut in a User Driectory Post 1610 by Neo on Monday 19th of March 2001 07:59:40 PM
Old 03-19-2001
One correct way to communicatin is to say 'create a link'. There are two primary kinds of links, hard links and symbolic links. Directories are normally linked by symbolic links; files by hard links, but not always and YMMV. For example:

Your mail spool directory (located at /usr/spool/mail for example) is always full of big files and filling up your disk partition. You go out to ebay and purchase a 60GB drive for $100 bucks from SuperHardDisks.com. You pay with Paypal and it ships the same day Smilie

When it arrives, you have a spare slave port on one of your EIDE channels, so you power down and add the slave device and reboot. The drive is recognized by the BIOS (yippie!), so you run FDISK and create one big 60GB partition (because you get a lot of mail, mostly from spammers offering the fountain of youth and freedom from worries forever!!!).

You then create a directory (normally in the root partition) and then mount the new partition, call it (/usr/spool/supermaildisk). Then you shutdown your mail daemon and move all the mail in /usr/spool/mail to /usr/spool/supermaildisk. Then you remove the /usr/spool/mail directory and create a new symbolic link from /usr/spool/supermail to /usr/spool/mail.
You test to make sure you did not fat-finger any commands and make some goofy error, restart your mail daemon and 'poof!!', you just increased your mail spool directory to many GB.

Perhaps someone else will explain hard links and files, how to use symbolic links for library files, and other exciting fun with links Smilie

[Edited by Neo on 03-19-2001 at 08:04 PM]
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

creating a new user

i just installed netBSD, and i want to know how to create a new user account. i understand that netBSD doesn't come with the tools to do that, so i downloaded a user utility (mebbe i'm wrong about netBSD) but the problem is, i don't know how to read files off floppy disks. (i'm quite new to unix)... (3 Replies)
Discussion started by: Newbie4ever
3 Replies

2. UNIX for Dummies Questions & Answers

creating a new user

I have AIX 5.1 I have created a user manually in the /etc directory. Then I created his home directory "mkdir /home/fharvey" then I changed ownership "chown fharvey /home/fharvey" set his password "passwd fharvey" When I log in as him I get "user is required to change password. "when I... (7 Replies)
Discussion started by: rocker40
7 Replies

3. AIX

Limiting length of user in while creating user

Hi all, I am a newbe to aix 5.2. I want to specify the characters used by users while creating user in aix like specifying the length of the password should i use some sript for that if it is then please let me know how to do this if yes give me the link for the scripts. Thanks in advance ... (2 Replies)
Discussion started by: Satya Mishra
2 Replies

4. UNIX for Dummies Questions & Answers

Creating user accounts

Hey everyone I am new to the forums and to Unix. I am currently taking a class on Unix, our teacher posed the question to us How do u create a user account without using GUI or command? We are currently running Knoppix version of Unix and for the life of me I can't figure out how this is possible.... (0 Replies)
Discussion started by: Redditt90kg
0 Replies

5. Shell Programming and Scripting

Creating user accounts

Hi, I have written a program using shell scripting. When you run the file it will asks you to enter the user name, if the user exists it says " user exists " if not it will displays like " user doesnt exist" and then asks you like " do you want to add user with options Yes or No " if you say... (1 Reply)
Discussion started by: vishwaprasad
1 Replies

6. Solaris

Creating user in solaris

Hi all, I logged in as root in solaris machine and made an attempt to create a user ,i am getting the following error message pls help me to resolve this issue bash-3.00# useradd -d /home/kalyan -m -s /bin/sh kalyan UX: useradd: ERROR: Unable to create the home directory: Operation not... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

7. Shell Programming and Scripting

Creating a Shortcut (to just type "l" but it runs "ls -lah")

How do I create shortcuts? For example: I just want to type one key "l" and have it output the command of "ls -lah" I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file. *if it matters, I'm on a shared hosting web server using cPanel with... (2 Replies)
Discussion started by: ijustsawmars
2 Replies

8. 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

9. UNIX for Dummies Questions & Answers

Creating files with New User

Hello All, I just created a new user on a server running SLES 11, and I created the user using the command below: # useradd -G nagios scpuser But whenever I create a file or directory while logged in as this user it creates the file's ownership permissions as "scpuser:users" instead of it... (2 Replies)
Discussion started by: mrm5102
2 Replies

10. UNIX for Advanced & Expert Users

Prevent user from creating new user from his login

Hi Experts, Need your support Redhat 6.5 I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
CROSSPOST(8)                                                  System Manager's Manual                                                 CROSSPOST(8)

NAME
crosspost - create the links for cross posted articles SYNOPSIS
crosspost [ -D dir ] [ -s ] [ file... ] DESCRIPTION
Crosspost reads group and article number data from files or standard input if none are specified. (A single dash in the file list means to read standard input.) It uses this information to create the hard, or symbolic, links for cross posted articles. Crosspost is designed to be used by InterNetNews to create the links as the articles come in. Normally innd creates the links but by having crosspost create the links innd spends less time waiting for disk IO. In this mode one would start innd(8) using the ``-L'' flag. Crosspost expects input in the form: group.name/123 group2.name/456 group3.name/789 with one line per article. Any dots in the input are translated into "/" to translate the news group into a pathname. The first field is assumed to be the name of an existing copy of the article. Crosspost will attempt to link all the subsequent entries to the first using hard links if possible or symbolic links if that fails. By default, crosspost processes its input as an INN channel feed written as a ``WR'' entry in the newsfeeds(5) file, for example: crosspost:*:Tc,Ap,WR:/usr/lib/news/bin/crosspost To process the history file and re-create all the links for all articles use: awk <history -F' ' '(NF > 2){print $3}' | crosspost (where the -F is followed by a tab character.) The ``-D'' flag can be used to specify where the article spool is stored. The default directory is /var/spool/news. By default crosspost will fsync(2) each article after updating the links. The ``-s'' flag can be used to prevent this. HISTORY
Written by Jerry Aguirre <jerry@ATC.Olivetti.Com>. SEE ALSO
newsfeeds(5), innd(8). CROSSPOST(8)
All times are GMT -4. The time now is 11:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy