I have completely blanked out on this and I have done it a million times. I need to modify some tables in unix. What is the command for opening/viewing the tables?
Thanks so much. :o (2 Replies)
I have a file (called CORE) that is a dump created by a crashing process. This file, I believe, is in "binary" form, so when I try to use cat, more, or vi on it, it has a bunch of garbage. Is there anything I can use to "read" or view this file just like I might a non-binary file? I am running... (2 Replies)
Hi,
Can someone help me figure out how to view directory content while I navigate directories (without having to go to the actual directory and "ls-ing" it)? Is there some keyboard shortcut for this? For instance, it would be useful if I could see the content of a directory when I'm copying... (2 Replies)
Hi,
I have a program that get a directory name from the user, then the program should go through one by one of the file, asking the user whether to move it to another folder. I tried to list the time of the file one by one. But it seems like it doesn't work. The code is as follow:
check()
{... (10 Replies)
Hey,
I know the head and tail function is to view like the top or bottom lines for each file. But lets say I want to view the top/bottom 100 or top/bottom 1000 for a file. whats the command that I use to do this?
thanks (2 Replies)
Hi all,
When I use BDF command on this particular server, it outputs mostly normal stuff. However, there is one directory it can't read at all.
Also, it doesn't seem to exist.
When I BDF my file system with a small panic script (it happens even if you use just the bdf command):
As you... (17 Replies)
I have a file name as logfiles_tar.tgz. How can I view the contents of the log files present in logfiles_tar.tgz ? Any help would be really appreciated.
Thanks (3 Replies)
What is the command line for viewing the sizes(lines and bytes)of all the files in your present working directory?
Is it
>ls -la (2 Replies)
Discussion started by: Payton2704
2 Replies
LEARN ABOUT ULTRIX
lprm
lprm(1) General Commands Manual lprm(1)Name
lprm - remove jobs from line printer queue
Syntax
lprm [-Pprinter] [-] [job #...] [user...]
Description
The command removes a job, or jobs, from a printer's spool queue. Since the spooling directory is protected from users, using is normally
the only method by which a user may remove a job.
The command without any arguments deletes the currently active job if it is owned by the user who invoked
If the - flag is specified, removes all jobs which a user owns. If the super-user employs this flag, the spool queue is emptied entirely.
The owner is determined by the user's login name and host name on the machine where the command was invoked.
Specifying a user's name, or list of user names, causes to attempt to remove any jobs queued belonging to that user (or users). This form
of invoking is useful only to the super-user.
A user may dequeue an individual job by specifying its job number. This number may be obtained from the program. For example,
% lpq -l
1st: ken [job #013ucbarpa]
(standard input) 100 bytes
% lprm 13
The command announces the names of any files it removes and is silent if there are no jobs in the queue which match the request list.
The command kills off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automati-
cally restarted upon completion of file removals.
Options
- Removes all jobs owned by you only.
-P printer Removes jobs from specified printer. It may be used to specify the queue associated with a specific printer (otherwise
the default printer, or the value of the PRINTER variable in the environment is used).
Restrictions
Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified.
Diagnostics
``Permission denied" if the user tries to remove files other than his own.
Files
/etc/printcap printer characteristics file
/usr/spool/* spooling directories
/usr/spool/*/lock lock file used to obtain the pid of the current
daemon and the job number of the currently active job
See Alsolpq(1), lpr(1), lpd(8)lprm(1)