The largest Interview Solution Library on the web

« Previous | 1 | 2 | 3 | Next »

Unix – Useful Commands

This quick guide lists commands, including a syntax and brief description. For more detail, use:

$man command

Files and Directories:

These commands allow you to create directories and handle files.
CatDisplay File Contents
CdChanges Directory to dirname
Chgrpchange file group
ChmodChanging Permissions
CpCopy source file into destination
FileDetermine file type
FindFind files
GrepSearch files for regular expressions.
HeadDisplay first few lines of a file
LnCreate softlink on oldname
LsDisplay information about file type.
MkdirCreate a new directory dirname
MoreDisplay data in paginated form.
MvMove (Rename) a oldname to newname.
PwdPrint current working directory.
RmRemove (Delete) filename
RmdirDelete an existing directory provided it is empty.
TailPrints last few lines in a file.
TouchUpdate access and modification time of a file.
Manipulating data:

The contents of files can be compared and altered with the following commands.
AwkPattern scanning and processing language
CmpCompare the contents of two files
Comm.Compare sorted data
CutCut out selected fields of each line of a file
DiffDifferential file comparator
ExpandExpand tabs to spaces
JoinJoin files on some common field
PerlData manipulation language
SedStream text editor
SortSort file data
SplitSplit file into smaller files
TrTranslate characters
UniqReport repeated lines in a file
WcCount words, lines, and characters
ViOpens vi text editor
VimOpens vim text editor
FmtSimple text formatter
SpellCheck text for spelling error
IspellCheck text for spelling error
IspellCheck text for spelling error
EmacsGNU project Emacs
ex, editLine editor
EmacsGNU project Emacs
EmacsGNU project Emacs
Compressed Files:

Files may be compressed to save space. Compressed files can be created and examined:
compressCompress files
GunzipUncompress gzipped files
GzipGNU alternative compression method
uncompressUncompress files
UnzipList, test and extract compressed files in a ZIP archive
ZcatCat a compressed file
ZcmpCompare compressed files
ZdiffCompare compressed files
ZmoreFile perusal filter for crt viewing of compressed text
Getting Information:

Various Unix manuals and documentation are available on-line. The following Shell commands give information:
aproposLocate commands by keyword lookup
InfoDisplays command information pages online
ManDisplays manual pages online
WhatisSearch the whatis database for complete words.
YelpGNOME help viewer
Network Communication:

These following commands are used to send and receive files from a local UNIX hosts to the remote host around the world.
ftpFile transfer program
RcpRemote file copy
rloginRemote login to a UNIX host
RshRemote shell
TftpTrivial file transfer program
telnetMake terminal connection to another host
SshSecure shell terminal or command connection
ScpSecure shell remote file copy
Sftpsecure shell file transfer program
Some of these commands may be restricted at your computer for security reasons.

Messages between Users:

The UNIX systems support on-screen messages to other users and world-wide electronic mail:
evolutionGUI mail handling tool on Linux
MailSimple send or read mail program
MesgPermit or deny messages
ParcelSend files to another user
PineVdu-based mail utility
TalkTalk to another user
WriteWrite message to another user
Programming Utilities:

The following programming tools and languages are available based on what you have installed on your Unix.
DbxSun debugger
GdbGNU debugger
MakeMaintain program groups and compile programs.
NmPrint program's name list
SizePrint program's sizes
StripRemove symbol table and relocation bits
CbC program beautifier
CcANSI C compiler for Suns SPARC systems
CtraceC program debugger
GccGNU ANSI C Compiler
IndentIndent and format C program source
BcInteractive arithmetic language processor
GclGNU Common Lisp
PerlGeneral purpose language
PhpWeb page embedded language
PyPython language interpreter
AspWeb page embedded language
CCC++ compiler for Suns SPARC systems
g++GNU C++ Compiler
JavacJAVA compiler
appletvieweirJAVA applet viewer
netbeansJava integrated development environment on Linux
SqlplusRun the Oracle SQL interpreter
SqlldrRun the Oracle SQL data loader
MysqlRun the mysql SQL interpreter
Misc Commands:

These commands list or alter information about the system:
ChfnChange your finger information
ChgrpChange the group ownership of a file
ChownChange owner
DatePrint the date
determinAutomatically find terminal type
DuPrint amount of disk usage
EchoEcho arguments to the standard options
ExitQuit the system
FingerPrint information about logged-in users
groupaddCreate a user group
GroupsShow group memberships
homequotaShow quota and file usage
IostatReport I/O statistics
KillSend a signal to a process
LastShow last logins of users
Logoulog off UNIX
LunList user names or login ID
NetstatShow network status
PasswdChange user password
PasswdChange your login password
printenvDisplay value of a shell variable
PsDisplay the status of current processes
PsPrint process status statistics
quota -vDisplay disk usage and limits
ResetReset terminal mode
ScriptKeep script of terminal session
ScriptSave the output of a command or process
SetenvSet environment variables
StySet terminal options
TimeTime a command
TopDisplay all system processes
TsetSet terminal mode
TtyPrint current terminal name
UmaskShow the permissions that are given to view files by default
UnameDisplay name of the current system
UptimeGet the system up time
useraddCreate a user account
UsersPrint names of logged in users
VmstatReport virtual memory statistics
WShow what logged in users are doing
WhoList logged in users
« Previous | 1 | 2 | 3 | Next »

copyright © 2014 - all rights riserved by