KingPin's Forum
 
K.P.s.N. Register vbBux / KPs Mall Bugs Blogs FAQ Search Today's Posts Mark Forums Read Donate
Go Back   KingPin's Forum > KP's Network Forum > Tutorials & Stuff!
Reload this Page Linux : Miscellaneous Commands
 


Tutorials & Stuff! This is a discussion on Linux : Miscellaneous Commands in the Tutorials & Stuff!;
Description: Miscellaneous Linux Commands Keys and keycodes and console dumpkeys Dump keyboard translation tables. getkeycodes Print kernel scancode-to-keycode mapping table. lesskey ...

Reply
 
LinkBack Thread Tools
Linux : Miscellaneous Commands
(#1 (permalink))
Old
KingPin's Avatar
KingPin is Offline
Da Boss!
KingPin has disabled reputation
 

My Mood:
 
Posts: 7,034
Thanks: 20
Thanked 17 Times in 15 Posts
Blog Entries: 22
Join Date: Apr 2004
Location: Brooklyn, NY
Linux : Miscellaneous Commands - July 16th, 2004

Miscellaneous Linux Commands
Keys and keycodes and console
dumpkeys Dump keyboard translation tables.
getkeycodes Print kernel scancode-to-keycode mapping table.
lesskey Specify key bindings for less.
loadkeys Load keyboard translation tables.
psfaddtable Add a unicode character table to a console font.
psfgettable Extract the embedded Unicode character table from a console font.
psfstriptable Remove the embedded Unicode character table from a console font.
resizecons Change kernel idea of the console size.
setkeycodes Load kernel scancode-to-keycode mapping table.
Ncurses functions
captoinfo Convert a termcap description into a terminfo description.
clear Clear the terminal screen.
infocmp Compare or print out terminfo descriptions.
reset Restore run-time parameters for session to default values.
tie Merge or apply WEB change files.
toe Table of terminfo entries.
tput Initialize a terminal or query terminfo database.
tset Terminal initialization.

CD programs
cdparanoia An audio CD reading utility.
cdrecord Record audio or data compact Disks from a master.
Other
alias Ex:: alias dir='ls -a' - Effect: Makes dir list all files (no spaces next to the = sign).
bison GNU project parser generator.
chvt Change foreground virtual terminal.
crack Program used to find bad passwords or crack security.
cvs Concurrent Versions System.
deallocvt Gets rid of unused virtual terminals.
dumpkeys Dump keyboard translation tables.
fc Fix command. Used to edit the commands in the current history list.
gdbm The GNU database manager.
gpm A cut and paste mouse server.
history Show commands listed in the shell history (last n).
lilo Boot management program.
mc Visual shell for Unix like system. A file manager.
nc A file manager.
pdksh Public domain Korn shell.
pilot Filesystem browser.
PS1="Please enter a command" Set Bash level 1 response.
PS2="I need more information" Set Bash level 2 response.
rcs Recision Control system. Change RCS file attributes.
sash Standalone shell with built in commands.
screen Screen manager with VT100 terminal emulation.
sleep Ex: "sleep 2" - wait 2 seconds.
tcsh C shell with filename completion and command line editing.
unalias Ex: "unalias dir" - Effect: Removes the alias dir.
units Unit conversion program.
variables

* set - Ex: set t=/temp
* unset - Ex: unset t
* echo - Ex: echo $t

zsh The Z shell.
ttysnoop A program that comes with some systems that lets the administrator to snoop on the user's terminals.

 
Reply With Quote
Revenue Shared Ads
Linux : Miscellaneous Commands
(#2 (permalink))
Old
The Darkone is Offline
Lance Corporal
Points: 3,011, Level: 15 Points: 3,011, Level: 15 Points: 3,011, Level: 15
Activity: 0% Activity: 0% Activity: 0%
The Darkone is an unknown quantity at this point
 
 
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2004
Linux : Miscellaneous Commands - October 7th, 2004

Miscellaneous Linux Commands
Keys and keycodes and console
dumpkeys Dump keyboard translation tables.
getkeycodes Print kernel scancode-to-keycode mapping table.
lesskey Specify key bindings for less.
loadkeys Load keyboard translation tables.
psfaddtable Add a unicode character table to a console font.
psfgettable Extract the embedded Unicode character table from a console font.
psfstriptable Remove the embedded Unicode character table from a console font.
resizecons Change kernel idea of the console size.
setkeycodes Load kernel scancode-to-keycode mapping table.
Ncurses functions
captoinfo Convert a termcap description into a terminfo description.
clear Clear the terminal screen.
infocmp Compare or print out terminfo descriptions.
reset Restore run-time parameters for session to default values.
tie Merge or apply WEB change files.
toe Table of terminfo entries.
tput Initialize a terminal or query terminfo database.
tset Terminal initialization.

CD programs
cdparanoia An audio CD reading utility.
cdrecord Record audio or data compact Disks from a master.
Other
alias Ex:: alias dir='ls -a' - Effect: Makes dir list all files (no spaces next to the = sign).
bison GNU project parser generator.
chvt Change foreground virtual terminal.
crack Program used to find bad passwords or crack security.
cvs Concurrent Versions System.
deallocvt Gets rid of unused virtual terminals.
dumpkeys Dump keyboard translation tables.
fc Fix command. Used to edit the commands in the current history list.
gdbm The GNU database manager.
gpm A cut and paste mouse server.
history Show commands listed in the shell history (last n).
lilo Boot management program.
mc Visual shell for Unix like system. A file manager.
nc A file manager.
pdksh Public domain Korn shell.
pilot Filesystem browser.
PS1="Please enter a command" Set Bash level 1 response.
PS2="I need more information" Set Bash level 2 response.
rcs Recision Control system. Change RCS file attributes.
sash Standalone shell with built in commands.
screen Screen manager with VT100 terminal emulation.
sleep Ex: "sleep 2" - wait 2 seconds.
tcsh C shell with filename completion and command line editing.
unalias Ex: "unalias dir" - Effect: Removes the alias dir.




Spaming
 
Reply With Quote
Linux : Miscellaneous Commands
(#3 (permalink))
Old
Spinner is Offline
Private
Points: 2,131, Level: 12 Points: 2,131, Level: 12 Points: 2,131, Level: 12
Activity: 0% Activity: 0% Activity: 0%
Spinner is an unknown quantity at this point
 
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2005
Linux : Miscellaneous Commands - April 21st, 2005

Thought Id give my 2 cents.



man

* purpose: on-line manual for Unix (or Linux)
* usage: man <program_name> or man -k <keyword>
* examples:
o man man describes the use of the manual
o man -k print lists commands that refer to printing


pwd

* purpose: print position in the file system (Print Working Directory); see also dirs
* usage: pwd


cd

* purpose: Change Directory
* usage: cd <directory_to_go>
* remarks:
o If no target directory is specified, cd will change to the home directory, ~
o A directory can be specified relative to the current location, or by a full pathname.
A full pathname begings with a forward-slash, /, or a tilde, ~.
A ~ by itself denotes the user's home directory.
See the examples below.
* examples:
o cd papers
changes to the subdirectory papers of the current directory
o cd ~/images
changes to the directory ~/images, which is the directory images in the user's home directory; note that the full path is given!
o cd /home/HOMER
changes to the directory /home/HOMER, given by a full path
o cd ~euclid
changes to the home directory of the user whose login-name is euclid


dirs

* purpose: print position in the file system, use ~ if we are inside the home directory; see also pwd
* Note: actually, dirs prints the whole directory stack; the current directory is the first in the list
* usage: dirs


ls

* purpose: list content of a directory, or information about files (LiSt)
* usage: ls [-laR] [<file_names> <directory_names>]
o if no file or directory is specified, it lists the content of the current directory
o -a shows all files (including those that start with a dot)
o -l shows the long form, describing permissions, size etc.
o -R descends recursively through the directories
* example: ls -al ~ shows the whole content of your home directory


mkdir

* purpose: create a new directory (MaKe DIRectory)
* usage: mkdir <directory_name>


chmod

* purpose: change read/write/execute permissions (CHange MODe)
* usage: chmod [-R] <whoHOWwhat> <target>
o who is any combination of
+ u for user
+ g for group
+ o for other
+ a for all (i.e., user, group and others)
o HOW can be one of
+ = for set
+ + for add
+ - for remove
o what is any combination of
+ r for read
+ w for write
+ x for execute
o target is a list of files and directories
o -R causes chmod to descend recursively through the directories
* examples:
o chmod -R go-rw my_papers protects the directory my_papers, and any file or directory beneath it, from being read/written by group and others
o chmod a+r index.html allows everyone to read the file index.html


fg

* purpose: brings jobs that are suspended or in the background to the foreground (ForeGround)
* Note: an alternative to fg is to issue the command %job_number, or %first_few_letters. E.g.: %2 will bring to the foreground the job having number 2, %em will do the same for emacs (assuming there is a unique match)
* usage: fg [job_specification]
o job_specification can be %job_number or %first_few_letters (as above)
o if job_specification is missing, fg will resume the current job
o otherwise, it will resume the specified job
o to find the job numbers, use the command jobs.
* examples: fg %1, fg %em


bg

* purpose: takes jobs that are suspended to the background (BackGround)
* usage: similar to fg


jobs

* purpose: lists the jobs currently executing (running, suspended etc.) in the shell where the command is issued
* usage: jobs
o the current job is always flagged with a +, and the previous job with a -


ssh

* purpose: connect securely to another machine (Secure SHell)
* usage: ssh [-l login_name] [hostname | user@hostname] [command]
* examples:
o ssh math.uh.edu attempts to connect to math.uh.edu, using as login_name that of the user issuing the command
o ssh -l john math or ssh john@math attemps to connect to math as user john
* NOTE: if, e.g., math is not recognized as hostname, you might have to give its full name, math.uh.edu. This is expanded by, roughly speaking, the DNS (Domain Name Server) to the "real" address, which is a number, something like 132.8.182.9.


scp

* purpose: copy securely from another machine (Secure CoPy)
* WARNING: scp will overwrite files without asking for confirmation!
* usage: scp [[user@]host1:]file1 [...] [[user@]host2:]file2
* example: scp john@math.berkeley.eduapers/text text_berkeley
copies the file ~/papers/text from the john@math.berkeley.edu account to the file text_berkeley on the machine (and account) from where scp was issued


pine

* purpose: lets you read, send and handle emails (Program for Internet News and Email)
* usage: pine, and follow the instructions/choices on the screen


xon

* purpose: start an X program on a remote machine
* usage: xon remote-host [-user user-name] [command]
* remarks: when no command is specified, xon runs xterm.
* example: xon math netscape starts netscape on math


tar

* purpose: gather more files/directories into a single file; the same command (with different parameters) will reconstruct the files/directories.
This is useful, say, to make a copy of a directory (e.g., over the Internet), or to compress it (first tar the directory, then compress the resulting file - using gzip & gunzip or bzip2 & bunzip2, etc.)
* usage:
o to create a tar file: tar cvpf <TARGET_FILE.tar> <INPUT>
o to extract the files: tar xvpf <TARED_STUFF>
The INPUT can be a list of files and/or directories.
* example:
o tar cvpf school.tar ~/2001/school will tar the directory (or file) ~/2001/school into the file school.tar
o tar xvpf school.tar will reconstruct the directory (or file) school in the current directory;
NOTE: the file school.tar is not removed
* remarks: see the explanation of the parameters in the man-page;
there are many more possibilities!


lpq

* purpose: check the laser printer queue (Laser Printer Queue)
* usage:
o lpq
The status of the default printer is checked (if such a printer is defined).
o lpr -P <printer_name>
The status of the specified printer is checked.
* examples: lpq -P rm645
check the status of the printer rm645 (which is the default printer)


lpr

* purpose: print a PostScript or text (ASCII) file to the printer (Laser PRinter)
o WARNING: DO NOT SEND OTHER FILES TO THE PRINTER. The result will be a lot of garbage pages.
o If this however happened, you can try to stop the printing with the command lprm - (this might not help always).
o You can check the status of a printer (e.g., jobs in the queue) with the command lpq.
* usage:
o lpr <file>
The file will be sent to the default printer.
If there is no default printer defined, an error message will be issued, and nothing printed.
o lpr -P <printer_name> <file>
The file is sent to the printer specified.
* examples: lpr -P rm645 exam.ps
(rm645 is the default printer)


lprm

* purpose: remove jobs from the printer (Laser Printer ReMove)
Normally, one can remove only his/her own jobs.
* usage:
o You might have to issue the command from the same machine from where the job was sent to the printer.
o If the action is directed to the default printer, the -P parameter can be omitted.
o If the flag - is specified, all queues will be searched (in some versions the corresponding flag is -a, check the man-page).
o lprm -P <printer_name>
remove the last job that you submitted to the specified printer
o lprm -
remove the last job that you submitted from all printer queues
o lprm -P <printer_name> <number>
remove job number <number> from the queue (the job numbers can be seen with lpq)
o lprm -P <printer_name> all
remove all your jobs from the queue
* examples:
o lprm - all
remove all your jobs in all queues
o lprm -P rm645 1 4
remove jobs 1 and 4 from the printer rm645
 
Reply With Quote
Linux : Miscellaneous Commands
Revenue Shared Ads
Reply

Bookmarks

Tags
linux, miscellaneous, commands

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Rupees Per Thread View: 1.00
Rupees Per Thread: 15.00
Rupees Per Post: 5.00
Forum Jump



These are the 100 most searched terms
Search Cloud
_backup.rc antrix wow antrix wow server autocad 2007 keygen best google gadgets best wow character bt map devil may cry 4 crack enchanting leveling erika bella fuckteam fuckteam 5 georgina lempin gigistar gigistar topless kpsden kpsforum leatherworking guide leveling enchanting mangos custom vendors mangos item id mangos linux mangos server mangos spell id mangos wotlk mature creampie milena velba no rest for the ass object id wow phoenix marie this is sparta vipersdenforums voyage century bot windows activation workaround windows xp lite wotlk alpha private server wotlk private server wotlk server wotlk wiki wow leatherworking guide wow mount locations wow object id wow object id list wow object id's wow object ids wow objects id www.adobeflashplayer www.adobeflashplayer.com www.kpsforum.com xbox 360 mmorpg ... powered by Simple Search Cloud
Powered by vBulletin® Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright 2004-2009 KPsN


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82