linux com nds

5
Linux Commands [email protected] Index of the Linux BASH command line alias Create an alias awk Find and Replace text, database sort/validate/index break Exit from a loop builtin Run a shell builtin cal Display a calendar case Conditionally perform a command cat Display the contents of a file cd Change Directory cfdisk Partition table manipulator for Linux chgrp Change group ownership chmod Change access permissions chown Change file owner and group chroot Run a command with a different root directory cksum Print CRC checksum and byte counts clear Clear terminal screen cmp Compare two files comm Compare two sorted files line by line command Run a command - ignoring shell functions continue Resume the next iteration of a loop cp Copy one or more files to another location cron Daemon to execute scheduled commands crontab Schedule a command to run at a later time csplit Split a file into context-determined pieces cut Divide a file into several parts date Display or change the date & time dc Desk Calculator dd Data Dump - Convert and copy a file 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 echo Display message on screen ed A line-oriented text editor (edlin) egrep Search file(s) for lines that match an extended expression eject Eject CD-ROM enable Enable and disable builtin shell commands env Display, set, or remove environment variables eval Evaluate several commands/arguments exec Execute a command 1

Upload: princegeorge

Post on 27-Dec-2015

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linux Com Nds

Linux [email protected]

Index of the Linux BASH command line

alias Create an aliasawk Find and Replace text, database sort/validate/indexbreak Exit from a loopbuiltin Run a shell builtin

cal Display a calendarcase Conditionally perform a commandcat Display the contents of a filecd Change Directorycfdisk Partition table manipulator for Linuxchgrp Change group ownershipchmod Change access permissionschown Change file owner and groupchroot Run a command with a different root directorycksum Print CRC checksum and byte countsclear Clear terminal screencmp Compare two filescomm Compare two sorted files line by linecommand Run a command - ignoring shell functionscontinue Resume the next iteration of a loopcp Copy one or more files to another locationcron Daemon to execute scheduled commandscrontab Schedule a command to run at a later timecsplit Split a file into context-determined piecescut Divide a file into several parts

date Display or change the date & timedc Desk Calculatordd Data Dump - Convert and copy a filedeclare Declare variables and give them attributesdf Display free disk spacediff Display the differences between two filesdiff3 Show differences among three filesdir Briefly list directory contentsdircolors Colour setup for `ls'dirname Convert a full pathname to just a pathdirs Display list of remembered directoriesdu Estimate file space usage

echo Display message on screened A line-oriented text editor (edlin)egrep Search file(s) for lines that match an extended expressioneject Eject CD-ROMenable Enable and disable builtin shell commandsenv Display, set, or remove environment variableseval Evaluate several commands/argumentsexec Execute a command

1

Page 2: Linux Com Nds

Linux [email protected]

exit Exit the shellexpand Convert tabs to spacesexport Set an environment variableexpr Evaluate expressions

factor Print prime factorsfalse Do nothing, unsuccessfullyfdformat Low-level format a floppy diskfdisk Partition table manipulator for Linuxfgrep Search file(s) for lines that match a fixed stringfind Search for files that meet a desired criteriafmt Reformat paragraph textfold Wrap text to fit a specified width.for Expand words, and execute commandsformat Format disks or tapesfree Display memory usagefsck Filesystem consistency check and repair.function Define Function Macros

gawk Find and Replace text within file(s)getopts Parse positional parametersgrep Search file(s) for lines that match a given patterngroups Print group names a user is ingzip Compress or decompress named file(s)

hash Remember the full pathname of a name argumenthead Output the first part of file(s)history Command Historyhostname Print or set system name

id Print user and group id'sif Conditionally perform a commandimport Capture an X server screen and save the image to fileinfo Help infoinstall Copy files and set attributes

join Join lines on a common field

kill Stop a process from running

less Display output one screen at a timelet Perform arithmetic on shell variablesln Make links between fileslocal Create variableslocate Find fileslogname Print current login namelogout Exit a login shelllpc Line printer control programlpr Off line print

2

Page 3: Linux Com Nds

Linux [email protected]

lprint Print a filelprintd Abort a print joblprintq List the print queuelprm Remove jobs from the print queuels List information about file(s)

m4 Macro processorman Help manualmkdir Create new folder(s)mkfifo Make FIFOs (named pipes)mknod Make block or character special filesmore Display output one screen at a timemount Mount a file systemmtools Manipulate MS-DOS filesmv Move or rename files or directories

nice Set the priority of a command or jobnl Number lines and write filesnohup Run a command immune to hangups

passwd Modify a user passwordpaste Merge lines of filespathchk Check file name portabilitypopd Restore the previous value of the current directorypr Convert text files for printingprintcap Printer capability databaseprintenv Print environment variablesprintf Format and print dataps Process statuspushd Save and then change the current directorypwd Print Working Directory

quota Display disk usage and limitsquotacheck Scan a file system for disk usagequotactl Set disk quotas

ram ram disk devicercp Copy files between two machines.read read a line from standard inputreadonly Mark variables/functions as readonlyremsync Synchronize remote files via emailreturn Exit a shell functionrm Remove filesrmdir Remove folder(s)rpm Remote Package Managerrsync Remote file copy (Synchronize file trees)

screen Terminal window managersdiff Merge two files interactively

3

Page 4: Linux Com Nds

Linux [email protected]

sed Stream Editorselect Accept keyboard inputseq Print numeric sequencesset Manipulate shell variables and functionsshift Shift positional parametersshopt Shell Optionsshutdown Shutdown or restart linuxsleep Delay for a specified timesort Sort text filessource Run commands from a file `.'split Split a file into fixed-size piecessu Substitute user identitysum Print a checksum for a filesymlink Make a new name for a filesync Synchronize data on disk with memory

tac Concatenate and write files in reversetail Output the last part of filestar Tape ARchivertee Redirect output to multiple filestest Evaluate a conditional expressiontime Measure Program Resource Usetimes User and system timestouch Change file timestampstop List processes running on the systemtraceroute Trace Route to Hosttrap Run a command when a signal is set(bourne)tr Translate, squeeze, and/or delete characterstrue Do nothing, successfullytsort Topological sorttty Print filename of terminal on stdintype Describe a command

ulimit Limit user resourcesumask Users file creation maskumount Unmount a deviceunalias Remove an aliasuname Print system informationunexpand Convert spaces to tabsuniq Uniquify filesunits Convert units from one scale to anotherunset Remove variable or function namesunshar Unpack shell archive scriptsuntil Execute commands (until error)useradd Create new user accountusermod Modify user accountusers List users currently logged inuuencode Encode a binary file uudecode Decode a file created by uuencode

4

Page 5: Linux Com Nds

Linux [email protected]

v Verbosely list directory contents (`ls -l -b')vdir Verbosely list directory contents (`ls -l -b')

watch Execute/display a program periodicallywc Print byte, word, and line countswhereis Report all known instances of a command which Locate a program file in the user's path. while Execute commandswho Print all usernames currently logged inwhoami Print the current user id and name (`id -un')

xargs Execute utility, passing constructed argument list(s)yes Print a string until interrupted

.period Run commands from a file### Comment / Remark

5