ODOC: lprm

lprm — Cancel print jobs

Summary:

lprm cancels print jobs that have been queued for printing. If no arguments are supplied, the current job on the default printer is canceled. You can specify one or more job ID numbers to cancel those jobs, or use the – option to cancel all jobs.

Example:

$ lprm — Cancel the current job on default printer.

$ lprm -P prn2 — Cancel the current job on printer PRN2.

$ lprm 100 200 — Cancel jobs with id 100 and 200.

Read: man lprm
lprm, odoc, linux, gnu/linux

ODOC: lpq

lpq — Show printer queue status

Summary:

lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer/class is specified on the command-line.

Example:

$ lpq — Show the default printer Queue status.

$ lpq -P prn2 — Show the printer PRN2 status.

$ lpq -a — Show all printers status.

$ lpq -l — Show in long format.

$ lpq +5 — Show the status of the default printer status for every 5 Sec interval, until queue become empty.

Read: man lpq
lpq, odoc, linux, gnu/linux

ODOC: procinfo

procinfo — Display system status gathered from /proc folder

Summary:

procinfo gathers system data from the /proc directory and prints it nicely formatted on the standard output device.

Example:

$ procinfo — Show MEM,CPU Usage and IRQ details.

$ procinfo -f — Run in Full screen mode and update will happen for every 5 Sec.

$ procinfo -n.1 — Run in Full screen mode and update for every .1 sec (Run with highest-priority).

$ procinfo -m — Show info about modules and device drivers.

$ procinfo -d — For memory, CPU times, paging, swapping, disk, context and IRQ status.

$ procinfo -F /dev/tty9 — Redirect output to tty9.

Read: man procinfo
procinfo, odoc, linux, gnu/linux

ODOC: vlock

vlock — Lock the Virtual console session.

Summary:

vlock is a program to lock one or more sessions on the text console. This is especially useful for Linux machines which have multiple users with access to the console. One user may lock his/her session(s) while still allowing other users to use the system on other consoles. If desired, the entire console may be locked and console switching disabled. To unlock, Password of the user, who locked it, Or root is needed.

Example:

$ vlock — Lock the current session.

$ vlock -c — Same as above.

$ vlock -a — Lock all console sessions and disable the console switching.

Read: man vlock
vlock, odoc, linux, gnu/linux

ODOC: passwd

passwd — Update a user’s authentication details.

Summary:

Passwd is used to update a user’s authentication tokens, like password, lifetime, etc.. Passwd is configured to work through the Linux-PAM API.

Example:

$ passwd — Ask new passwd for your account.

# passwd user1 — Ask new passwd for user1’s account.

# passwd -l user1 — Lock user1 account.

# passwd -u user1 — Unlock user1 account.

# passwd -d user1 — Remove password for user1.

# passwd -S user1 — Show short info about user1’s password.

# passwd -n 30 user1 — Set 30days as the min lifetime of the user1’s password.

Note:
All new users should read the following topic in the man page
A) Protect your password & B) Choose a hard-to-guess password.

Read: man passwd, pam

passwd, pam, odoc, linux, gnu/linux

ODOC: finger

finger — User information lookup program.

Summary:

finger will lookup and show information about users in the local or remote system.

Example:

$ finger — Show currently logged on user’s info.

$ finger user1 — Show info about the user1.

$ finger -s — Show more info about the currently logged on users.

$ finger -l — Show all info about the users in multi-lines.

$ finger @host2 — Show all current logged on users info.

$ finger user2@host2 — Show info about user2 on host2.

Note:

  • User can add his/her plans in ~/.plan and projects details in ~/.project file. Finger will show this in output.
  • Remote host should run fingerd to support remote fingering.

Read: man finger

finger,odoc, linux,gnu/linux

Picasa for GNU/Linux

Found this news via NewLinuxUser and it is nice to see that Google is thinking of porting Picasa the famous image editing program for GNU/Linux users. Google is working along with CodeWeavers to produce a GNU/Linux version of Picasa and CodeWeavers are responsible for the Cross over office application. It is nice to see one of my favourite apps in windows to be ported to Linux.

picasa, google, code+weavers,cross+over+office, linux

ODOC: route

route — Show / Manipulate the IP routing table.

Summary:

Route manipulates the kernel’s IP routing tables. Its primary use is to set up static routes to specific hosts or networks via a network interface (like eth0 …).

Example:

$ route — Show routing table. It will try resolve the name for IP.

$ route -n — Same as above. But won’t resolve.

$ route -ee — Show more detailed info.

$ route -A inet6 — Show IPv6 related route info.

# route add -net 127.0.0.0 — Adds the normal loopback entry.

# route add -net 192.168.14.0 netmask 255.255.255.0 dev eth0 — Adds a route to the network 192.168.14.x via “eth0”.

# route add default gw midas-gw dev eth1 — Set the default Gateway for eth1.

# route del default dev eth0 — Remove the default Gateway of eth0.

# route add -net 10.0.0.0 netmask 255.0.0.0 reject — Sets rejecting route for the “10.x.x.x.”

# route add -net 192.168.13.0 netmask 255.255.255.0 gw wify1 — Adds the net “192.168.13.x” to be gatewayed through wify1.

Read: man route

route,odoc, linux, gnu/linux

Repaired Keyboard

I couldn’t post yesterday because my keyboard drank some coffee and it is not in a working condition. I am currently accessing the computer in my friend’s house and I also have to prepare for two paper presentations in college. So I guess, I am a bit busy for the 2 weeks and I will try to squeeze myself for the occassional posts.

keyboard

ODOC: less

less — Filter for paging through text one screen full at a time.

Summary:

It is a filter for showing the text in page by page format to user. It supports No. of commands for screen operations, different prompts and Input Preprocessing. Less will show big files in faster manner.

Example:

$ less myfile — Show the file content in page by page format.

$ less -c myfile — Clear the screen before showing next screen.

$ less -q myfile — Exit after 2nd time reaches end-of-file.

$ less -G myfile — High-lite all searched strings.

$ less -pMail myfile — Start at the 1st occurrence of pattern “Mail”

$ less -P%B myfile — Last line prompt will show the file size.

$ less xyz.rpm — RPM file infos.

$ less xyz.tar — List all files in the tar file.

$ less xyz.zip — List all files in the Zip file.

Commands:

  • Press q to exit from less.
  • Press ! to execute the shell command
  • Press !! to rerun the last shell command
  • Press ^l to refresh the screen.
  • Press /pattern for search.

Note:

  • User can write own preprocessing script by editing lesspipe.sh.
  • User can build own key mapping by running lesskey command.
  • If env variable LESSSECURE is set to 1, then it runs in a “Secure” mode. No Shell, Pipe, Examine and Editing command are disabled.
  • Less will not read entire file content in 1st read.

Read: man less

less, odoc, linux, gnu/linux