Anda di halaman 1dari 8

about alive awk

Blkfsys basename bc boot buildqnx

echo

egrep elvis elvrec emu87 env errno esh expand expr

Int10 Iso9660fsys id ident index infocmp install

Fsys Fsysaha2 Fsysaha4 Fsysaha7 Fsysamd Fsysata Fsyseide Fsysfloppy Fsyside Fsysmitsumi Fsysncr8scsi Fsysps2s Fsysus14 false fcat fdformat fdisk fgrep find finger fold freeze fsysinfo fullpath join

Csc cat cd cfont chgrp chkfsys chmod chown ci cksum clock cmp co comm cp cpio cron crontab ctags cut gmake grep gunzip gzip

Dev Devansi Devcon Devpar Devpty Devser Dosfsys date dbg dcheck dd df diff diff3 dinit dirname disktrap ditto du dumper hd head

kbd kedit kill kill_vcs ksh

less lex license licinfo ln lockfd logger login

Mouse

Mqueue mailx make melt mkdir mkfifo modem more mount mount_iso9660 mount_smb mousetrap mv

qcp qed qtalk

Net Netarc20 Netarcnet Netarcxir Netether1000 Netether2100 Netether21x4x Netether503 Netether509 Netether7231 Netether8003 Netether9000 Netfd Netfddidfe Nettr164a nameloc netboot netinfo netmap netpoll netsniff nettrap newgrp nice noditto nohup ramtrap rcs rcsclean rcsdiff rcsmerge renice rlog rm rmdir rtc

on

logname logout lp lpc lpq lprm lpsrvr ls PcmciaBeep Pcmcialaunch Pcmciaservers Pipe Proc passwd paste pax pcmciatrap pin pr prefix printf ps pwd

SMBfsys Slib sac scsi_util sect-a2m sect-n2z sed sh shutdown sin sinit size slay sleep sort spatch split strings

tail tape tar tee termdef textto tic ticksize time tinit touch tr tracectrl traceinfo tracelogger true tty

uesh

umask umount uname unexpand uniq use usemsg user_smb

vedit vi vol

stty su summary sync syslogd wall wc which who write

xargs yacc zap zcat

The Essential QNX Commands


cd -- change directory
examples: cd changes to your root directory (ie /home/stealth). cd /home/stealth/data changes the working directory to /home/stealth/data cd .. moves back one directory cp -- copy a file or directory cp [options]... source_file target_file examples: cp stealth.sol backup/stealth.sol.bak copies stealth.sol to the directory backup with the name stealth.sol.bak cpcopies *.log data all .log files to the directory data. If the directory data does not exist, all of the files will be copied to a single file called data. ls -- lists a directory ls [options] [file ...] important switches -l -- long list. Shows file attributes and sizes -D -- shows only directories example: ls -l stealth* a long listing of all files and directories starting with stealth (output follows)
Brw-rw-r--rw-rw-r--rw-rw-r--rw-rw-r--rw-rw-r-1 stealth 1 stealth 1 stealth 1 stealth 1 stealth user user user user user 2072 Dec 10 20:01 stealth.log 3953 Dec 03 20:29 stealth.pcm 6152 Jul 10 17:24 stealth.rtg 6152 Jul 10 17:24 stealth.rtg.bak 912 Dec 04 15:17 stealth.sft

-rw-rw-r--rw-rw-r--rwxrwxr-x -rwxrwxr-x -rwsrwx--x -rwxrwxr-x -rwxrwxr-x -rwxrwxr-x -rwsrwx--x

1 stealth 1 stealth 1 stealth 1 stealth 1 root 1 stealth 1 stealth 1 stealth 1 root

user user user user root user user user root

9644 Aug 13 00:25 stealth.sol 2665 Dec 05 21:56 stealth.tma 61501 Dec 05 21:57 stealthalgo 60594 Dec 05 21:57 stealthclt 55127 Dec 04 15:17 stealthcol 4508 Dec 05 21:55 stealthcol_wd 66102 Dec 04 15:17 stealthdisp 4157 Aug 29 21:17 stealthdoit 57202 Dec 05 21:56 stealthsrvr

man -- manual page


man is a program that displays the manual page for a command using an html viewer called lynx. Not all QNX commands are documented such that man works! example: man ls see also: use mkdir -- makes a directory mkdir [-p] [-m mode] dir... example: mkdir test makes a directory called test mv -- move or rename a file or directory mv [options] source_file target_file examples: mv stealth.sol stealth.sol.bak renames stealth.sol to stealth.sol.bak mv stealth.sol backupto backup UNLESS backup is a directory in which it moves steatlh.sol to renames stealth.sol backup/stealth.sol ps -- show process status example:

ps used to see what processes are running similar to sin pwd -- print working directory

The pwd utility writes the pathname of the current working directory to the standard output. This is a very usefully utility when you are "lost" and don't know which directory you are in. example: pwd

if you are in the /home/stealth/src dirctory pwd will return /home/stealth/src rm -- remove files or directories Once a file or directory is removed it is deleted permentantly! important switches: -f -- force removal (no prompting) -r -- remove directory and its contents examples: rm data* remove all files in current directory starting with the letters "data" rm -r data* remove all files AND all directories starting with the letters "data" sin -- system info examples: sin shows all running processes sin irqs shows which irqs are used and by which process

use -- gives help on a QNX command

example: use ls shows all the options and brief description of the command ls see also: man

commands use pwd cd cp ls mv rm id ssh telnet ped qde xpdf mozilla which grep Find mkdir rmdir cat vi less or more textto chmod ln tar kill ps

Explanation Print a usage message Determine your current directory Change directory Copy files and file hierarchies List the contents of a directory Rename (move) files and directories Delete (remove) files Return userid Provides secure remote connections User interface to the TELNET protocol Photon editor Launch QNX IDE PDF file reader Internet browser Locate a program file Search for string patterns Find files based on search criteria Create directories Remove directories Concatenate and display files Visual interface editor clone Display output on a page-by-page basis Convert text files to DOS format Change a file's permissions/attributes Create hard and symbolic links Create/Extract a "tape archive" Terminate or signal processes Report process status

Unix Command man where Cd cp ls mv rm who ssh telnet which grep find mkdir rmdir cat vi less/more chmod ln tar kill ps

Anda mungkin juga menyukai