10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good Afternoon,
I'm backing up a folder from one NAS to another using a unix script using cp. Its a lot of files and takes several days to complete. Most of the files don't change from week to week. Is there a command that would be quicker?
Also note, the backup needs to be ready-to-use in... (5 Replies)
Discussion started by: Stellaman1977
5 Replies
2. UNIX for Beginners Questions & Answers
Ubuntu, Bash 4.3.48
Hi,
I have 2 files and I want to join them (line by line if the start of the lines is the same, like a ID)
INPUT FILE 1 (tab delimited)
aa_12_12_v_c aaa,asf,afgas,eg
bb_12_43_a_d dad,ada,adaf,afa
cc_56_75_d_f asd,thh,ert,rtertet
INPUT FILE 2 (tab delimited)... (4 Replies)
Discussion started by: echo manolis
4 Replies
3. HP-UX
is there a way for my C++ application to find out which mode the hpux OS is running in?
standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies
4. Shell Programming and Scripting
Hi All,
I am trying to select 30 days older files under current directory ,but not from subdirectory using below command.
find <Dir> -type f -mtime + 30
This command selecting all the files from current directory and also from sub directory .
I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies
5. AIX
hi,
I need alternative command for topas to check cpu %, i tried with ps but their is lot of diffference between the outputs of two commands...
Thanks (3 Replies)
Discussion started by: sumanthupar
3 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
Ok, Im back with another small problem. I created a script (the one posted in the last thread). After some help from some members here all is good. The problem is I made it... (4 Replies)
Discussion started by: ozman911
4 Replies
7. Shell Programming and Scripting
Hi all,
I am using linux box ...i dont find the manual entry of sar command through
man sar ...it is in unix not in linux although i have to check the cpu utilization and paging...any alternative of sar command..
Thanks
Vijay Sahu (1 Reply)
Discussion started by: vijays3
1 Replies
8. UNIX for Dummies Questions & Answers
Hi friends,I am new to unix and this is really a dummy question.but please help me out.
How to simulate head command without using head command???
also tail command too,also more command.
it is given as a homework to do....please tell me how to do (2 Replies)
Discussion started by: nikhilneela
2 Replies
9. HP-UX
I think that if the directory /tcb exists, HP-UX is in trusted mode and the passwd data is somewhere in /tcb/files/auth. But that's all I remember.
Also I think recent versions of HP-UX can have a /etc/shadow file. (0 Replies)
Discussion started by: Perderabo
0 Replies
10. UNIX for Dummies Questions & Answers
Hi
Is there a better alternative to sed command..
or any command as an alternate to sed.
Thanks!! (3 Replies)
Discussion started by: aixjadoo
3 Replies
SHOWKEY(1) General Commands Manual SHOWKEY(1)
NAME
showkey - examine the codes sent by the keyboard
SYNOPSIS
showkey [-h|--help] [-a|--ascii] [-s|--scancodes] [-k|--keycodes]
DESCRIPTION
showkey prints to standard output either the scan codes or the keycode or the `ascii' code of each key pressed. In the first two modes the
program runs until 10 seconds have elapsed since the last key press or release event, or until it receives a suitable signal, like SIGTERM,
from another process. In `ascii' mode the program terminates when the user types ^D.
When in scancode dump mode, showkey prints in hexadecimal format each byte received from the keyboard to the standard output. A new line is
printed when an interval of about 0.1 seconds occurs between the bytes received, or when the internal receive buffer fills up. This can be
used to determine roughly, what byte sequences the keyboard sends at once on a given key press. The scan code dumping mode is primarily
intended for debugging the keyboard driver or other low level interfaces. As such it shouldn't be of much interest to the regular end-user.
However, some modern keyboards have keys or buttons that produce scancodes to which the kernel does not associate a keycode, and, after
finding out what these are, the user can assign keycodes with setkeycodes(8).
When in the default keycode dump mode, showkey prints to the standard output the keycode number or each key pressed or released. The kind
of the event, press or release, is also reported. Keycodes are numbers assigned by the kernel to each individual physical key. Every key
has always only one associated keycode number, whether the keyboard sends single or multiple scan codes when pressing it. Using showkey in
this mode, you can find out what numbers to use in your personalized keymap files.
When in `ascii' dump mode, showkey prints to the standard output the decimal, octal, and hexadecimal value(s) of the key pressed, according
to he present keymap.
OPTIONS
-h --help
showkey prints to the standard error output its version number, a compile option and a short usage message, then exits.
-s --scancodes
Starts showkey in scan code dump mode.
-k --keycodes
Starts showkey in keycode dump mode. This is the default, when no command line options are present.
-a --ascii
Starts showkey in `ascii' dump mode.
SEE ALSO
loadkeys(1), dumpkeys(1), keymaps(5), setkeycodes(8)
1 Feb 1998 SHOWKEY(1)