UNIX Comandos
UNIX Comandos
Y
| Redirect the output to another command
R
Displays the file filename in a page format. Within more ‘h’
Quick Reference Card
A
* Wild card, will match any character(s) for help, ‘v’ to invoke the vi editor.
N
Rev 0.e January 20, 2000 ? Wild card, will match any single character
I
mount [-p][FStype] device mount-point
Approved by Brad Wulf Directory Tree Commands Mounts a physical device as part of the file system
I M Reference
Proprietary to General Electric Company / = root directory ~ = user home directory -p show mounted devices, FStype define the file system
L
Produced by GE Medical Systems Education Center
E
.. = parent directory . = current directory type, device physical device name
R
alias [ name [ def ] ] mount-point location to mount in file system
UNIX Cross
P
Assigns def to name. All aliases are displayed when used without mv [-i] filename directory or filename2
Procedure UNIX name & dif. Move or rename files. -i Interactive
Change a Password passwd cat filename passwd
Change Directory cd Concatenate and display filename Command to change password.
Change Permissions for Files chmod cd [directory] pwd
Change working directory to directory. Used by itself will change
Close a window CTRL ‘d’ Display the pathname of the current working directory.
to the logged-in user’s home directory.
Command Aliases alias rm [-fir] filename
chmod [-R][ugo][+-=][rwx] filename
Configuration conf Remove (unlink) files. -f Force removal.
Change permissions of a filename. -R Recursive
Copy Files cp –i Interactive, -r Recursive.
ugo user, group, other. +-= add, remove, set all
rmdir dirname
Current Directory pwd rwx read, write, execute.
conf Remove (unlink) directories.
Delete Files rm su [ - ] [username]
Directory Listing ls Displays the configuration for sdc (AW3.1) based products
cp [-ipr] Filename1 Filename2 Switch user. – Runs login scripts. username If not
Disk Drive Free Space df used default is super user.
Copy file(s). -i Interactive -p Preserve -r Recursive
Display a Text File cat ctrl-d umount mount-point
Display a Text File in Page mode more Logout, close shell instance, close a window Un-mounts a device from the file system
Edit a Text File vi df [-a] [-k] unalias name
Eject a floppy or CD eject Reports free disk space. -a All drives. Discard an alias of name.
File System Check & Repair fsck -k Prints in k-bytes. vi filename
Find a File find eject [cdrom] Visual display line editor. i = insert, a = append, both will put
Ejects a floppy. Use cdrom to eject a CD. ‘vi’ into the edit mode. Esc will end edit mode.
Format a Floppy fdformat
fdformat [-v] x = delete character, dd = delete line ‘Shift’ ZZ = Write/Quit
Host ID Display hostid -v Verifies format (See right panel for full floppy use.) : = Enter command mode, q = Quit, w = Write, ! = Force
How am I logged in? whoami find path -name filename -print who
echo $USER Finds files by name. path Starting directory. Who is logged in on the system?
History of Prior Commands history filename File being searched for. whoami
Logout CTRL ‘d’ fsck [-y] Display username of the current logged in user.
Make a Directory mkdir File System check and repair. -y Force repair
Mount a device mount Best used in ‘single user’ mode.
Solaris-1 = fsck -b 32 /dev/(device #, ie: sd0a) Floppy Management
Move a File mv
Solaris-2 = fsck -y -F ufs -o b=32 /dev/dsk/ (device #, ie: c0t3d0s7) Format floppy
Remove a Directory rmdir history fdformat -v
Rename a File mv Displays the last several commands. Create floppy file system
Repeat Last Command !! hostid echo y | newfs -m o /dev/rfd0c
Repeat Prior Command !# For sdc based workstations to show the Host ID # Make a mount point
Shutdown to Kernel init 5, Init [#] mkdir /diskette
shutdown 0 = Kernel, 1 = Administrative, 2 = Multi-user, 3 = Networked Mount the floppy to the file structure
4 = Extended Networked, 5 = Shutdown, 6 = Shutdown & Reboot mount /dev/fd0c /diskette
Shutdown & Reboot init 6,
s = Single-user Read directory
reboot logout ls /diskette
Switch Users su Close shell instance Delete floppy from the file structure
UNIX Help man ls [-aRFl] [?* & filename] umount /diskette
Unmount a device umount List the contents of a directory. -a All files Remove floppy
Who’s Logged On who -R Recursive, -F Mark dir’s with a /, links with a @, executables eject
with a *, -l Long listing
g GE Medical Systems Sun Troubleshooting Tools Sparc: Sun Systems
Clasic 133 Mhz, 24, 32 or 64 meg, 32 bit, SCSI, SunOS
Direction XXXXXX-100 Power-Up Diags: only, Aprox. 10” square, 5” tall, Used on DLX
If any of the LED’s on the keyboard remain lit, it is an 4 110 Mhz, 32, 64 or 128 meg, 32 bit, SCSI, S-bus,
SUN WORKSTATIONS indication of a Main board error. Need to see hardware SunOS or Solaris, Aprox. 15” square, 3” tall,
R Y
manual for Sun to decipher. Used on DLX
Quick Reference Card
A
Rev 0.A Jan. 20, 2000 If CAPS LOCK blinks then extended diagnostics is 5 233 Mhz, 64 meg, 32 bit, SCSI, S-bus, SunOS or
IN
Approved by Brad Wulf running, no display on monitor. This may take up to 5 min, Solaris, Aprox. 15” square, 3” tall, Used on DGW
M Quick
Proprietary to General Electric Company depending on system. Gateway, No Video connections, Built in CD.
Sun L I
Produced by GE Medical Systems Education Center
Ultra:
E
To start and monitor extended power-up diagnostics:
PR Commands
1 300 Mhz, 64 meg, 32 bit, SCSI, S-bus, Solaris,
Keyboard 1) Connect a laptop to serial port A on the sun with a Aprox. 15” square, 2.5” tall, Used on AW3.1, Seno
“null” modem cable. (laplink cable will work with a 2 Dual 300 Mhz, 128 meg, 32 or 64 bit, SCSI, S-
Most Systems
gender changer.) bus, Solaris, Aprox. 15” square, 6” tall, Used on
‘STOP’ A
Terminates all software and takes the system to the kernel. 2) On the laptop, run “Advantx-E Terminal” AW3.1P (X-ray 3D), DCR ARM
POWER Key (upper right) 3) Power on the Sun, Press the STOP key and the “A” 5 270 Mhz, 64 meg, 32 bit, EIDE, PCI bus, Solaris,
At the ‘OK’ kernel prompt, pressing the upper/right key (the key. Aprox. 17” square, 4.5” tall, Used on DLX, DGW
one with a line and circle) when holding the shift key will 4) At the ‘OK’ prompt, enter ‘setenv diag-switch? true’ Gateway
power off the system. 5) Turn the Sun off. 10 333 Mhz, 128 meg, 32 bit, EIDE, PCI bus,
‘STOP’ D During boot up 6) Holding the STOP key and the “D” key, turn the Sun Solaris, Tower Apx. 7” wide, 15” tall, Used on
Runs extended boot-up diagnostics and sends the output to the on. AW3.1, Eagle, FFDM AWS
serial port. Need laptop to read. 7) Extended power-up diagnostics will display on the
‘STOP’ N During boot up
60 Dual 450 Mhz, 256 meg, 64 bit, SCSI, S-bus,
laptop screen terminal program. Solaris, Tower Apx. 8” wide, 20” tall, Used on
Sets the NVRAM to defaults
‘Ctrl’ D FFDM RWS, AW4.0
To disable extended power-up diagnostics:
Will close most open windows or log the current user out
1) At the ‘OK’ prompt, enter ‘setenv diag-switch? false’ DLX-2: Monitors
SDC Based Systems (AW)
Front Key (left keypad) 2) Reboot. Vigra Bd. to a Digital Plasma
Cycle through all open windows, bringing them to the front. DLX-3 w/Sparc-4:
DLX Based Systems OK Prompt Diags: Green out to Analog Plasma or VGA to ViewSonic LCD
Iconize a window 1) At the ‘OK’ prompt, enter ‘setenv diag-switch? true’ Flat Screen
For SunOS: 2) To run all test enter ‘test-all’ DLX-3 w/Ultra-5:
Mouse in the window, Diamond (t), F9 VGA to ViewSonic LCD Flat Screen
3) To see what test are available enter ‘help test’
For Solaris: Senovision, Revolution XQ/i, Senographe 2000D AWS
Mouse in the window, Alt, F9 4) At the ‘OK’ prompt, enter ‘setenv diag-switch? false’
1K B&W Landscape Distar
Open an X-term window from Apps.
Mouse in unused area of screen then Ctrl, Shift, Diamond (t), How to boot up and see all information: Senographe 2000D RWS
Tilde (~) 1) boot -v One or two monitors, Dome Bds.
2.5K B&W Portrait Siemens
Network Interfaces Boot up troubleshooting: AW3.1, AW3.1P
lo0 One or two monitors, Dome Bds.
Internal diagnostic port 1) Disconnect all external devices except primary
monitor. Will have error when it tries to init 1K Color Landscape Sun, 1K B&W Portrait Megascan,
le0 / le1
Low speed Ethernet port (10 Mbits/sec) le0 is primary, le1 is disconnected devices. 2K B&W Portrait Megascan, 2.5K B&W Portrait Barco
secondary 2) Connect laptop per above & disconnect keyboard Documents produced by GEMS Global Educational Solutions are
hme0 / hme1 cable. Power up, all boot up scripts will display on not intended for use as primary documentation for field based
High speed Ethernet port (100 Mbits/sec) hme0 is primary, laptop. You can log into system from laptop. GEMS equipment.
hme1 is secondary
ba0 Copyright 2000 by the General Electric Company
ATM port (fiber optics)
Proprietary to General Electric Company
This document is the property of and contains information which is
Sun Sparc systems have a lo0 and le0 on the motherboard.
proprietary to the General Electric Company. Any reproduction in
Sun Ultra systems have a lo0 and hme0 on the motherboard.
whole or in part is prohibited. Neither the document nor any
Sparc’s second Ethernet connection may be le1 or hme0 information contained herein shall be disclosed to anyone outside
Ultra’s secondary Ethernet connection is hme1 the Company without the written authorization of the General
Both Sparc’s & Ultra’s can have a ba0 port. Electric Company.
g
Network Command’s Reference /etc/host Network Files
GE Medical Systems Procedure Command A lookup file to associate host alias names with their IP
Access Another System telnet addresses. Must have an entry for hostname.
Direction XXXXXX-100 Adding a Router route /etc/hostname.xxx
Contains the hostname for the xxx interface. xxx may be
Networks Address Resolution arp
le0, le1, hme0, hme1, ba0, ba1, etc.
Y
DICOM Ping sendecho
R
/etc/netmasks
Quick Reference Card Interface Configuration ifconfig
A
Rev 0.c Jan. 20, 2000 List Users and Machines rusers A lookup table to associate sub-netmask with their base
IN
Approved by Brad Wulf Logout CTRL ‘d’ network addresses.
/etc/services
LIM
Proprietary to General Electric Company Monitor network communications snoop
Produced by GE Medical Systems Education Center Move files across the network ftp A list of TCP/IP applications and their software port numbers.
RE
Network Status netstat /usr/sbin/in.rdisc
Networking Parts Router discovery daemon, rename to turn off.
P
Networked Systems on Line rup
Part # Description /usr/sbin/in.routed
Test Network Communications ping
46-287532P2 10-Base-2 Thinnet AUI Transceiver Network routing daemon, rename to turn off.
Who’s Logged On who
2135003 10-Base-T RJ45 AUI Transceiver Network Troubleshooting
2224969 10-Base-T RJ45 AUI Transceiver arp [-a] Hardware:
2220705 10-Base-T RJ45 AUI Transceiver Internet-to-Ethernet address translation table. Verify all cable connections:
2224971 10-Base Stackable Hub 8-RJ45, 1 Thinnet, 1 AUI –a Display all of the current ARP entries. Thinnet:
2230676 10/100-Base Stackable Hub 8-RJ45 ctrl-d Verify termination, must measure apx. 25 ohms.
46-296861G1 4 ½’ Long AUI Cable Logout, close shell instance, close a window Twisted Pair
2183711 8” Short AUI Cable ftp host Look for link lights on transceivers and hubs.
2183929 DLX Transceiver Mounting Bracket File transfer protocol, moves files between host Local network:
46-254682P4 50 Ω BNC “T” Connector host IP address or hostname from host table halt - Halt to the OK prompt
46-220427P3 BNC Bullet Connector In ftp ‘help’ will give a list of available commands. OK - test net - OK? Reboot
- KO? Check connection to Hub, check Hub,
46-214999P1 50 Ω BNC Terminator ifconfig [-a] interface [address] [up] [down] [netmask mask]
try another connection/port.
46-313020P1 50 Ω BNC Terminator w/ground lead [broadcast address]
ping hostname - OK? Local hardware ok.
99171776 50 Ω BNC Terminator w/chain Configure network interface parameters
-a Displays the current condition of all the interfaces. KO? Verify name in file /etc/hostname.xxx
2152351 Power Strip is listed in the /etc/hosts file.
interface Physical interface, address assigns an address
46-296454G6 50 Ω 45 Meter coax cable ping host - OK? Network connection ok.
up, down Turns the interface on or off
46-296454G2 50 Ω 18 Meter coax cable netmask Assigns the netmask of mask KO? Verify host powered on.
2128649 50 Ω 3.9 Meter coax cable broadcast Assigns address for broadcast. Try other hosts.
2173765 50 Ω 6.5 Meter coax cable netstat [-arni] Use rusers to see other hosts
2173767 50 Ω 1.2 Meter coax cable Show network status. -a All sockets, -r Routes ifconfig -a - Verify IP address, netmask
2237749 RJ45 1.8 Meter TP cable -n Show addresses as numbers, -i All TCP/IP Interfaces KO? Correct & reboot.
2173766 RJ45 6.5 Meter TP cable ping host OK? Connect two systems together with
2195942 RJ45 6.5 Meter TP cable Send an Echo request to a network host. hub or crossover cable and recheck.
2114689 RJ45 4 Meter TP cable route [-f] [add net network gateway hops] Routed network:
2236781 RJ45 60 Meter TP CAT 5 [add default gateway hops] ping router,
2212538 RJ45 TP Cable CPU to Hub Manipulate the routing tables. -f Delete table. local side IP - KO? See local network troubleshooting.
network Destination network IP. gateway Gateway IP. ping router,
2212537 RJ45 TP Cable CPU to CPU
hops Number of steps to destination network. routed side IP - OK? Ping routed workstation.
rup [-h] KO? Check routed workstation
Show host status of local machines. config.
Needed from the network administrator OK? No Problem
-h Alphabetically by host name.
to put a system on an Ethernet TCP/IP network: KO? Check route table, netmasks
rusers [-al]
• IP address in the form www.xxx.yyy.zzz ifconfig -a - Verify netmask, broadcast address
Who's logged in on local machines. -a All Machines.
• Hostname Alias limited to 8 characters. -l Long listing. netstat -r - Verify existing routes, network base address
• Netmask in the form www.xxx.yyy.zzz snoop [-d device] [-v] [-h] route -f - Delete the existing routing table
• Default Gateway IP in the form www.xxx.yyy.zzz -d select port device ie: le0, hme0, -v verbose, -h help route add net - Add route for destination network
sendecho ping router,
Needed for every workstation that images will be sent to: DICOM verification used on AW, Revolution XQ/I & routed side IP - OK? Determine reason for bogus routes
• IP address in the form www.xxx.yyy.zzz Senographe 2000D. Need host & destination AE, port & IP KO? Verify router is functioning.
• Hostname Alias telnet host Slow Communications:
• Application Entity Title (Might be same as hostname) Interface to a remote system. host IP address or alias name of snoop - Monitor communication load.
• Software Port address remote system. Reboot workstation and check for 10 or 100 base connections
Half or full duplexed. .
g GE Medical Systems
AW3.1
DICOM Conformance DICOM Conformance (cont.)
Senographe 2000D Review Workstation
Direction XXXXXX-100 AE Title = “hostname”, Port # = 4006 AE Title = “hostname”, Port # = 4006
Verification SCP Verification SCB
DICOM CR, CT, MR, SC, SO, XA, RF, RT & 3D Storage SCB DX, CR, CT, MG, MR, SC, SO, XA, RF, RT, 3D,
Y
Query / Retrieve SCU Saturn TDS & RT Plan Storage SCB
R
Quick Reference Card
A
Print SCU Query/Retrieve SCU
Rev 0.b Jan. 20, 2000
AW4.0 / 4.1 (2nd Qtr / 4th Qtr 2000)
N
Print SCU
I
Approved by Brad Wulf
AE Title = “hostname”, Port # = 4006 SenoVision
LIM
Proprietary to General Electric Company
Produced by GE Medical Systems Education Center Verification SCP AE Title = “hostname”, Port # = 4006
Verification SCP
E
DX, MG, NM, PET, US, US MF, CR, CT, MR, SC, SC Color,
PR
SO, XA, RF, RT & 3D Storage SCB SC Storage SCU
DICOM Query / Retrieve SCB Revolution XQ/I (Eagle)
Information Object Definition (IOD) Storage Commitment SCU AE Title = “hostname”, Port # = 4006
DX Digital X-ray (Digital Rad) RIS for Patient Reports Verification SCB
CR Computed Radiography Print SCU DX, SC Storage SCB
CT Computed Tomography DCR CRS CR, Query/Retrieve SCU
MG Digital Mammography AE Title = “hostname”, Port # = 4006 Print SCU
MR Magnetic Resonance Verification SCB Worklist SCU, AE Title = WL_”hostname”
NM Nuclear Medicine SC & XA SCB Storage Commitment SCB
OT Other Query / Retrieve SCU AE Title = SCU_”hostname”, Port # = 4008
PET Positron Emission Tomography DCR PC-CRS
RF Radiography & Fluoro AE Title = “hostname”, Port # = 104
RT Radio Therapy Verification, SC & XA Storage SCB
SC Secondary Capture Query / Retrieve SCU DICOM Troubleshooting
SO Standalone Overlay DCR ARM Network Communications:
US Ultra Sound AE Title = “hostname”, Port # 4006 ping IP Address - OK? Network OK
XA X-ray Angiography KO? Use the network troubleshooting
Verification, SC & XA Storage SCB
3D GE Private 3D SOP guide on other side.
Query / Retrieve SCP
DLX DICOM Communications:
Service Class (SC) AE Title = dlx_root, Port # = 4006 sendecho - OK? DICOM link made.
Verification (Handshake between AEs) Verification SCP KO? Check AE titles and port #s.
Storage (Ability to store images) XA & SC Storage, Worklist SCU Send SC image - OK? DICOM link made.
Print (Ability to hard copy images) DLX GateWay 2.x KO? Check for error message.
Query/Retrieve (View patient list on another AE and request AE Title = ATM “hostname”, Port # = 4006 Look for format or SOP error,
images) Verification SCP indicates they aren’t compatible.
Worklist (RIS or Radiology Information System, Ability to XA & SC Storage SCU Most DICOM compatible systems
request patient demographics) DLX GateWay 3.x support SC (secondary capture).
Storage Commitment (Verification that storage was AE Title = ATM “hostname”, Port # = 4006 Verify operation of receiving system.
completed successfully) Verification SCP Send Sequence - OK? DICOM link made.
XA & SC Storage SCU
KO? Check for error message.
SCU Service Class User (Network Client, Request a service of Storage Commitment SCB
Look for format or SOP error,
a provider) DRS & Remote DRS
AE Title = “hostname” indicates they aren’t compatible.
SCP Service Class Provider (Network Server, Provides a
service) RF Storage SCU Documents produced by GEMS Global Educational Solutions are
SCB Service Class Both (Does both functions) Worklist SCU for 3.2 only not intended for use as primary documentation for field based
Senographe 2000D Acquisition Workstation (FFDM) GEMS equipment.
XA Storage SCU XA Storage SCP AE Title = “hostname”, Port # = 4006
X-ray Angiographic Storage X-ray Angiographic Storage Verification, MG & SC Storage SCB Copyright 2000 by the General Electric Company
Service Class User Service Class Provider Query/Retrieve, Print SCU
Worklist SCU, AE Title = WL_”hostname” Proprietary to General Electric Company
Storage Commitment SCB This document is the property of and contains information which is
(I have an Angiographic image (I will store your proprietary to the General Electric Company. Any reproduction in
sequence I need to put on your Angiographic image AE Title = SCU_”hostname”, Port # = 4008
whole or in part is prohibited. Neither the document nor any
hard drive) sequence on my hard drive) information contained herein shall be disclosed to anyone outside
the Company without the written authorization of the General
Electric Company.