Command Line Reference
Command Line Reference
Linux and OS X
1
DSADD Add user (computer, group..) to active directory
DSQUERY List items in active directory
DSMOD Modify user (computer, group..) in active directory
2
NET Manage network resources
NETDOM Domain Manager
NETSH Configure network protocols
NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETSTAT Display networking statistics (TCP/IP)
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights
SC Service Control
SCHTASKS Create or Edit Scheduled Tasks
SCLIST Display NT Services
ScriptIt Control GUI applications
SET Display, set, or remove environment variables
SETLOCAL Begin localisation of environment changes in a batch file
SETX Set environment variables permanently
SHARE List or edit a file share or print share
SHIFT Shift the position of replaceable parameters in a batch file
3
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SOON Schedule a command to run in the near future
SORT Sort input
START Start a separate window to run a specified program or command
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
CALL
Cluster - CREATE CLUSTER
Cluster - ALTER CLUSTER
Cluster - DROP CLUSTER
COMMENT
COMMIT
CONNECT
CONSTRAINT - Add / Enable
Context - CREATE CONTEXT
Context - DROP CONTEXT
Controlfile - CREATE CONTROLFILE
4
Database - CREATE DATABASE
Database - ALTER DATABASE
DELETE
DESCRIBE
Dimension - CREATE DIMENSION
Dimension - ALTER DIMENSION
Dimension - DROP DIMENSION
Directory - CREATE DIRECTORY
Directory - DROP DIRECTORY
EXEC
EXECUTE IMMEDIATE
EXPLAIN PLAN
GRANT
NOAUDIT
5
Package - DROP PACKAGE
Pfile - CREATE PFILE
Procedure - CREATE PROCEDURE
Procedure - ALTER PROCEDURE
Procedure - DROP PROCEDURE
Profile - CREATE PROFILE
Profile - ALTER PROFILE
Profile - DROP PROFILE
RECOVER
RENAME
Resource - ALTER RESOURCE COST
REVOKE
RMAN - Recovery Manager
Role - CREATE ROLE
Role - SET ROLE
Role - ALTER ROLE
Role - DROP ROLE
ROLLBACK
Rollback - CREATE ROLLBACK SEGMENT
Rollback - ALTER ROLLBACK SEGMENT
Rollback - DROP ROLLBACK SEGMENT
SAVEPOINT
Schema - CREATE SCHEMA
SELECT
Sequence - CREATE SEQUENCE
Sequence - ALTER SEQUENCE
Sequence - DROP SEQUENCE
Session - ALTER SESSION
SHUTDOWN
SNAPSHOT
SPfile - CREATE SPFILE
STARTUP
Statistics - ASSOCIATE STATISTICS
Statistics - DISASSOCIATE STATISTICS
Synonym - CREATE SYNONYM
Synonym - DROP SYNONYM
System - ALTER SYSTEM
6
Type - DROP TYPE BODY
UPDATE
UNION
User - CREATE USER
User - ALTER USER
User - DROP USER
SYNTAX:
Words in CAPS are Oracle commands, words in lower-case are the options you can
modify.
Sections enclosed in [] are optional, underlined options are the default
Sections enclosed in {} are alternatives. The pipe symbol | indicates OR.
7
declare Declare variables and give them attributes
df Display free disk space
diff Display the differences between two files
diff3 Show differences among three files
dir Briefly list directory contents
dircolors Colour setup for `ls'
dirname Convert a full pathname to just a path
dirs Display list of remembered directories
du Estimate file space usage
8
kill Stop a process from running
m4 Macro processor
man Help manual
mkdir Create new folder(s)
mkfifo Make FIFOs (named pipes)
mknod Make block or character special files
more Display output one screen at a time
mount Mount a file system
mtools Manipulate MS-DOS files
mv Move or rename files or directories
9
rsync Remote file copy (Synchronize file trees)
10
watch Execute/display a program periodically
wc Print byte, word, and line counts
whereis Report all known instances of a command
which Locate a program file in the user's path.
while Execute commands
who Print all usernames currently logged in
whoami Print the current user id and name (`id -un')
11
diskutil Disk utilities - Format, Verify, Repair
ditto Copy files and folders
dscl Directory Service command line utility
du Estimate file space usage
12
login log into the computer
logout Exit a login shell (bye)
lpr Print files
lprm Remove jobs from the print queue
lpstat Printer status information
ls List information about file(s)
lsbom List a bill of materials file
lsof List open files
13
shutdown Shutdown or restart OS X
sleep Delay for a specified time
softwareupdate System software update tool
sort Sort text files
split Split a file into fixed-size pieces
stop Stop a job or process
su Substitute user identity
sudo Execute a command as another user
sum Print a checksum for a file
switch Conditionally perform a command
14