BASH_CMD

Embed Size (px)

Citation preview

  • 8/13/2019 BASH_CMD

    1/6

  • 8/13/2019 BASH_CMD

    2/6

    dir Briefly list directory contentsdircolors Colour setup for ls'dirname Convert a full pathname to just a pathdirs Display list of remembered directories

    dmesg Print kernel & driver messagesdu Estimate file space usagee

    echo Display message on screen egrep Search file(s) for lines that match an extended

    expressioneject Eject removable mediaenable Enable and disable builtin shell commands env Environment variablesethtool Ethernet card settingseval Evaluate several commands/arguments

    exec Execute a commandexit Exit the shellexpect Automate arbitrary applications accessed over a

    terminalexpand Convert tabs to spacesexport Set an environment variableexpr Evaluate expressions

    ffalse Do nothing, unsuccessfullyfdformat Low-level format a floppy diskfdisk Partition table manipulator for Linux

    fg Send job to foregroundfgrep Search file(s) for lines that match a fixed stringfile Determine file typefind Search for files that meet a desired criteriafmt Reformat paragraph textfold Wrap text to fit a specified width.for Expand words , and execute commands format Format disks or tapesfree Display memory usagefsck File system consistency check and repairftp File Transfer Protocol

    function Define Function Macrosfuser Identify/kill the process that is accessing a file

    ggawk Find and Replace text within file(s)getopts Parse positional parametersgrep Search file(s) for lines that match a given patterngroupadd Add a user security groupgroupdel Delete a groupgroupmod Modify a groupgroups Print group names a user is ingzip Compress or decompress named file(s)

    hhash Remember the full pathname of a name argumenthead Output the first part of file(s)

    http://ss64.com/bash/dir.htmlhttp://ss64.com/bash/dircolors.htmlhttp://ss64.com/bash/dirname.htmlhttp://ss64.com/bash/dirs.htmlhttp://ss64.com/bash/dmesg.htmlhttp://ss64.com/bash/du.htmlhttp://ss64.com/bash/echo.htmlhttp://ss64.com/bash/egrep.htmlhttp://ss64.com/bash/eject.htmlhttp://ss64.com/bash/enable.htmlhttp://ss64.com/bash/env.htmlhttp://ss64.com/bash/eval.htmlhttp://ss64.com/bash/exec.htmlhttp://ss64.com/bash/exit.htmlhttp://en.wikipedia.org/wiki/Expecthttp://ss64.com/bash/expand.htmlhttp://ss64.com/bash/export.htmlhttp://ss64.com/bash/expr.htmlhttp://ss64.com/bash/false.htmlhttp://ss64.com/bash/fdformat.htmlhttp://ss64.com/bash/fdisk.htmlhttp://ss64.com/bash/fg.htmlhttp://ss64.com/bash/fgrep.htmlhttp://ss64.com/bash/find.htmlhttp://ss64.com/bash/fmt.htmlhttp://ss64.com/bash/fold.htmlhttp://ss64.com/bash/for.htmlhttp://ss64.com/bash/fsck.htmlhttp://ss64.com/bash/function.htmlhttp://ss64.com/bash/fuser.htmlhttp://ss64.com/bash/awk.htmlhttp://ss64.com/bash/getopts.htmlhttp://ss64.com/bash/grep.htmlhttp://ss64.com/bash/groupadd.htmlhttp://ss64.com/bash/groupdel.htmlhttp://ss64.com/bash/groupmod.htmlhttp://ss64.com/bash/groups.htmlhttp://ss64.com/bash/gzip.htmlhttp://ss64.com/bash/hash.htmlhttp://ss64.com/bash/head.htmlhttp://ss64.com/bash/head.htmlhttp://ss64.com/bash/hash.htmlhttp://ss64.com/bash/gzip.htmlhttp://ss64.com/bash/groups.htmlhttp://ss64.com/bash/groupmod.htmlhttp://ss64.com/bash/groupdel.htmlhttp://ss64.com/bash/groupadd.htmlhttp://ss64.com/bash/grep.htmlhttp://ss64.com/bash/getopts.htmlhttp://ss64.com/bash/awk.htmlhttp://ss64.com/bash/fuser.htmlhttp://ss64.com/bash/function.htmlhttp://ss64.com/bash/fsck.htmlhttp://ss64.com/bash/for.htmlhttp://ss64.com/bash/fold.htmlhttp://ss64.com/bash/fmt.htmlhttp://ss64.com/bash/find.htmlhttp://ss64.com/bash/fgrep.htmlhttp://ss64.com/bash/fg.htmlhttp://ss64.com/bash/fdisk.htmlhttp://ss64.com/bash/fdformat.htmlhttp://ss64.com/bash/false.htmlhttp://ss64.com/bash/expr.htmlhttp://ss64.com/bash/export.htmlhttp://ss64.com/bash/expand.htmlhttp://en.wikipedia.org/wiki/Expecthttp://ss64.com/bash/exit.htmlhttp://ss64.com/bash/exec.htmlhttp://ss64.com/bash/eval.htmlhttp://ss64.com/bash/env.htmlhttp://ss64.com/bash/enable.htmlhttp://ss64.com/bash/eject.htmlhttp://ss64.com/bash/egrep.htmlhttp://ss64.com/bash/echo.htmlhttp://ss64.com/bash/du.htmlhttp://ss64.com/bash/dmesg.htmlhttp://ss64.com/bash/dirs.htmlhttp://ss64.com/bash/dirname.htmlhttp://ss64.com/bash/dircolors.htmlhttp://ss64.com/bash/dir.html
  • 8/13/2019 BASH_CMD

    3/6

    help Display help for a built- in command history Command Historyhostname Print or set system name

    i

    iconv Convert the character set of a fileid Print user and group id'sif Conditionally perform a commandifconfig Configure a network interfaceifdown Stop a network interfaceifup Start a network interface upimport Capture an X server screen and save the image to fileinstall Copy files and set attributes

    jjobs List active jobs join Join lines on a common field

    kkill Stop a process from runningkillall Kill processes by name

    lless Display output one screen at a timelet Perform arithmetic on shell varia bles link Create a link to a fileln Create a symbolic link to a filelocal Create variables locate Find fileslogname Print current login name

    logout Exit a login shell look Display lines beginning with a given stringlpc Line printer control programlpr Off line printlprint Print a filelprintd Abort a print joblprintq List the print queuelprm Remove jobs from the print queuels List information about file(s)lsof List open files

    m

    make Recompile a group of programsman Help manualmkdir Create new folder(s)mkfifo Make FIFOs (named pipes)mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystemmknod Make block or character special filesmore Display output one screen at a timemount Mount a file systemmtools Manipulate MS-DOS filesmtr Network diagnostics (traceroute/ping)mv Move or rename files or directories

    mmv Mass Move and rename (files)n

    netstat Networking information

    http://ss64.com/bash/history.htmlhttp://ss64.com/bash/hostname.htmlhttp://ss64.com/bash/iconv.htmlhttp://ss64.com/bash/id.htmlhttp://ss64.com/bash/if.htmlhttp://ss64.com/bash/ifconfig.htmlhttp://ss64.com/bash/ifup.htmlhttp://ss64.com/bash/ifup.htmlhttp://ss64.com/bash/import.htmlhttp://ss64.com/bash/install.htmlhttp://ss64.com/bash/jobs.htmlhttp://ss64.com/bash/join.htmlhttp://ss64.com/bash/kill.htmlhttp://ss64.com/bash/killall.htmlhttp://ss64.com/bash/less.htmlhttp://ss64.com/bash/let.htmlhttp://ss64.com/bash/link.htmlhttp://ss64.com/bash/ln.htmlhttp://ss64.com/bash/local.htmlhttp://ss64.com/bash/locate.htmlhttp://ss64.com/bash/logname.htmlhttp://ss64.com/bash/logout.htmlhttp://ss64.com/bash/look.htmlhttp://ss64.com/bash/lpc.htmlhttp://ss64.com/bash/lpr.htmlhttp://ss64.com/bash/lprm.htmlhttp://ss64.com/bash/ls.htmlhttp://ss64.com/bash/lsof.htmlhttp://ss64.com/bash/man.htmlhttp://ss64.com/bash/mkdir.htmlhttp://ss64.com/bash/mkfifo.htmlhttp://ss64.com/bash/mknod.htmlhttp://ss64.com/bash/more.htmlhttp://ss64.com/bash/mount.htmlhttp://ss64.com/bash/mtools.htmlhttp://ss64.com/bash/mtr.htmlhttp://ss64.com/bash/mv.htmlhttp://ss64.com/bash/mmv.htmlhttp://ss64.com/bash/mmv.htmlhttp://ss64.com/bash/mv.htmlhttp://ss64.com/bash/mtr.htmlhttp://ss64.com/bash/mtools.htmlhttp://ss64.com/bash/mount.htmlhttp://ss64.com/bash/more.htmlhttp://ss64.com/bash/mknod.htmlhttp://ss64.com/bash/mkfifo.htmlhttp://ss64.com/bash/mkdir.htmlhttp://ss64.com/bash/man.htmlhttp://ss64.com/bash/lsof.htmlhttp://ss64.com/bash/ls.htmlhttp://ss64.com/bash/lprm.htmlhttp://ss64.com/bash/lpr.htmlhttp://ss64.com/bash/lpc.htmlhttp://ss64.com/bash/look.htmlhttp://ss64.com/bash/logout.htmlhttp://ss64.com/bash/logname.htmlhttp://ss64.com/bash/locate.htmlhttp://ss64.com/bash/local.htmlhttp://ss64.com/bash/ln.htmlhttp://ss64.com/bash/link.htmlhttp://ss64.com/bash/let.htmlhttp://ss64.com/bash/less.htmlhttp://ss64.com/bash/killall.htmlhttp://ss64.com/bash/kill.htmlhttp://ss64.com/bash/join.htmlhttp://ss64.com/bash/jobs.htmlhttp://ss64.com/bash/install.htmlhttp://ss64.com/bash/import.htmlhttp://ss64.com/bash/ifup.htmlhttp://ss64.com/bash/ifup.htmlhttp://ss64.com/bash/ifconfig.htmlhttp://ss64.com/bash/if.htmlhttp://ss64.com/bash/id.htmlhttp://ss64.com/bash/iconv.htmlhttp://ss64.com/bash/hostname.htmlhttp://ss64.com/bash/history.html
  • 8/13/2019 BASH_CMD

    4/6

    nice Set the priority of a command or jobnl Number lines and write filesnohup Run a command immune to hangupsnotify-send Send desktop notifications

    nslookup Query Internet name servers interactivelyoopen Open a file in its default applicationop Operator access

    ppasswd Modify a user passwordpaste Merge lines of filespathchk Check file name portabilityping Test a network connectionpkill Stop processes from runningpopd Restore the previous value of the current directory

    pr Prepare files for printingprintcap Printer capability databaseprintenv Print environment variablesprintf Format and print data ps Process statuspushd Save and then change the current directorypv Monitor the progress of data through a pipepwd Print Working Directory

    qquota Display disk usage and limitsquotacheck Scan a file system for disk usage

    quotactl Set disk quotasr

    ram ram disk devicercp Copy files between two machinesread Read a line from standard input readarray Read from stdin into an array variable readonly Mark variables/functions as readonlyreboot Reboot the systemrename Rename filesrenice Alter priority of running processesremsync Synchronize remote files via email

    return Exit a shell functionrev Reverse lines of a filerm Remove filesrmdir Remove folder(s)rsync Remote file copy (Synchronize file trees)

    sscreen Multiplex terminal, run remote shells via sshscp Secure copy (remote file copy)sdiff Merge two files interactivelysed Stream Editorselect Accept keyboard input

    seq Print numeric sequencesset Manipulate shell variables and functionssftp Secure File Transfer Program

    http://ss64.com/bash/nice.htmlhttp://ss64.com/bash/nl.htmlhttp://ss64.com/bash/nohup.htmlhttp://ss64.com/bash/notify-send.htmlhttp://ss64.com/bash/nslookup.htmlhttp://ss64.com/bash/open.htmlhttp://ss64.com/bash/op.htmlhttp://ss64.com/bash/passwd.htmlhttp://ss64.com/bash/paste.htmlhttp://ss64.com/bash/ping.htmlhttp://ss64.com/bash/pkill.htmlhttp://ss64.com/bash/popd.htmlhttp://ss64.com/bash/pr.htmlhttp://ss64.com/bash/printf.htmlhttp://ss64.com/bash/ps.htmlhttp://ss64.com/bash/pushd.htmlhttp://ss64.com/bash/pv.htmlhttp://ss64.com/bash/pwd.htmlhttp://ss64.com/bash/quota.htmlhttp://ss64.com/bash/quotacheck.htmlhttp://ss64.com/bash/quotactl.htmlhttp://ss64.com/bash/ram.htmlhttp://ss64.com/bash/rcp.htmlhttp://ss64.com/bash/read.htmlhttp://ss64.com/bash/readonly.htmlhttp://ss64.com/bash/rename.htmlhttp://ss64.com/bash/return.htmlhttp://ss64.com/bash/rev.htmlhttp://ss64.com/bash/rm.htmlhttp://ss64.com/bash/rmdir.htmlhttp://ss64.com/bash/rsync.htmlhttp://ss64.com/bash/screen.htmlhttp://ss64.com/bash/scp.htmlhttp://ss64.com/bash/sdiff.htmlhttp://ss64.com/bash/sed.htmlhttp://ss64.com/bash/select.htmlhttp://ss64.com/bash/seq.htmlhttp://ss64.com/bash/set.htmlhttp://ss64.com/bash/set.htmlhttp://ss64.com/bash/seq.htmlhttp://ss64.com/bash/select.htmlhttp://ss64.com/bash/sed.htmlhttp://ss64.com/bash/sdiff.htmlhttp://ss64.com/bash/scp.htmlhttp://ss64.com/bash/screen.htmlhttp://ss64.com/bash/rsync.htmlhttp://ss64.com/bash/rmdir.htmlhttp://ss64.com/bash/rm.htmlhttp://ss64.com/bash/rev.htmlhttp://ss64.com/bash/return.htmlhttp://ss64.com/bash/rename.htmlhttp://ss64.com/bash/readonly.htmlhttp://ss64.com/bash/read.htmlhttp://ss64.com/bash/rcp.htmlhttp://ss64.com/bash/ram.htmlhttp://ss64.com/bash/quotactl.htmlhttp://ss64.com/bash/quotacheck.htmlhttp://ss64.com/bash/quota.htmlhttp://ss64.com/bash/pwd.htmlhttp://ss64.com/bash/pv.htmlhttp://ss64.com/bash/pushd.htmlhttp://ss64.com/bash/ps.htmlhttp://ss64.com/bash/printf.htmlhttp://ss64.com/bash/pr.htmlhttp://ss64.com/bash/popd.htmlhttp://ss64.com/bash/pkill.htmlhttp://ss64.com/bash/ping.htmlhttp://ss64.com/bash/paste.htmlhttp://ss64.com/bash/passwd.htmlhttp://ss64.com/bash/op.htmlhttp://ss64.com/bash/open.htmlhttp://ss64.com/bash/nslookup.htmlhttp://ss64.com/bash/notify-send.htmlhttp://ss64.com/bash/nohup.htmlhttp://ss64.com/bash/nl.htmlhttp://ss64.com/bash/nice.html
  • 8/13/2019 BASH_CMD

    5/6

    shift Shift positional parametersshopt Shell Optionsshutdown Shutdown or restart linuxsleep Delay for a specified time

    slocate Find filessort Sort text filessource Run commands from a file '.'split Split a file into fixed-size piecesssh Secure Shell client (remote login program)strace Trace system calls and signalssu Substitute user identitysudo Execute a command as another usersum Print a checksum for a filesuspend Suspend execution of this shell sync Synchronize data on disk with memory

    ttail Output the last part of filetar Store, list or extract files in an archivetee Redirect output to multiple filestest Evaluate a conditional expressiontime Measure Program running timetimeout Run a command with a time limittimes User and system timestouch Change file timestampstop List processes running on the systemtraceroute Trace Route to Host

    trap 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

    uulimit Limit user resources umask Users file creation maskumount Unmount a deviceunalias Remove an alias

    uname 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)uptime Show uptimeuseradd Create new user accountuserdel Delete a user accountusermod Modify user account

    users List users currently logged inuuencode Encode a binary fileuudecode Decode a file created by uuencode

    http://ss64.com/bash/shift.htmlhttp://ss64.com/bash/shopt.htmlhttp://ss64.com/bash/shutdown.htmlhttp://ss64.com/bash/sleep.htmlhttp://ss64.com/bash/slocate.htmlhttp://ss64.com/bash/sort.htmlhttp://ss64.com/bash/source.htmlhttp://ss64.com/bash/split.htmlhttp://ss64.com/bash/ssh.htmlhttp://ss64.com/bash/su.htmlhttp://ss64.com/bash/sudo.htmlhttp://ss64.com/bash/sum.htmlhttp://ss64.com/bash/suspend.htmlhttp://ss64.com/bash/sync.htmlhttp://ss64.com/bash/tail.htmlhttp://ss64.com/bash/tar.htmlhttp://ss64.com/bash/tee.htmlhttp://ss64.com/bash/test.htmlhttp://ss64.com/bash/time.htmlhttp://ss64.com/bash/timeout.htmlhttp://ss64.com/bash/times.htmlhttp://ss64.com/bash/touch.htmlhttp://ss64.com/bash/top.htmlhttp://ss64.com/bash/traceroute.htmlhttp://ss64.com/bash/tr.htmlhttp://ss64.com/bash/true.htmlhttp://ss64.com/bash/tsort.htmlhttp://ss64.com/bash/tty.htmlhttp://ss64.com/bash/type.htmlhttp://ss64.com/bash/ulimit.htmlhttp://ss64.com/bash/umask.htmlhttp://ss64.com/bash/alias.htmlhttp://ss64.com/bash/uname.htmlhttp://ss64.com/bash/unexpand.htmlhttp://ss64.com/bash/uniq.htmlhttp://ss64.com/bash/units.htmlhttp://ss64.com/bash/unset.htmlhttp://ss64.com/bash/unshar.htmlhttp://ss64.com/bash/until.htmlhttp://ss64.com/bash/useradd.htmlhttp://ss64.com/bash/userdel.htmlhttp://ss64.com/bash/usermod.htmlhttp://ss64.com/bash/users.htmlhttp://ss64.com/bash/uuencode.htmlhttp://ss64.com/bash/uuencode.htmlhttp://ss64.com/bash/uuencode.htmlhttp://ss64.com/bash/uuencode.htmlhttp://ss64.com/bash/users.htmlhttp://ss64.com/bash/usermod.htmlhttp://ss64.com/bash/userdel.htmlhttp://ss64.com/bash/useradd.htmlhttp://ss64.com/bash/until.htmlhttp://ss64.com/bash/unshar.htmlhttp://ss64.com/bash/unset.htmlhttp://ss64.com/bash/units.htmlhttp://ss64.com/bash/uniq.htmlhttp://ss64.com/bash/unexpand.htmlhttp://ss64.com/bash/uname.htmlhttp://ss64.com/bash/alias.htmlhttp://ss64.com/bash/umask.htmlhttp://ss64.com/bash/ulimit.htmlhttp://ss64.com/bash/type.htmlhttp://ss64.com/bash/tty.htmlhttp://ss64.com/bash/tsort.htmlhttp://ss64.com/bash/true.htmlhttp://ss64.com/bash/tr.htmlhttp://ss64.com/bash/traceroute.htmlhttp://ss64.com/bash/top.htmlhttp://ss64.com/bash/touch.htmlhttp://ss64.com/bash/times.htmlhttp://ss64.com/bash/timeout.htmlhttp://ss64.com/bash/time.htmlhttp://ss64.com/bash/test.htmlhttp://ss64.com/bash/tee.htmlhttp://ss64.com/bash/tar.htmlhttp://ss64.com/bash/tail.htmlhttp://ss64.com/bash/sync.htmlhttp://ss64.com/bash/suspend.htmlhttp://ss64.com/bash/sum.htmlhttp://ss64.com/bash/sudo.htmlhttp://ss64.com/bash/su.htmlhttp://ss64.com/bash/ssh.htmlhttp://ss64.com/bash/split.htmlhttp://ss64.com/bash/source.htmlhttp://ss64.com/bash/sort.htmlhttp://ss64.com/bash/slocate.htmlhttp://ss64.com/bash/sleep.htmlhttp://ss64.com/bash/shutdown.htmlhttp://ss64.com/bash/shopt.htmlhttp://ss64.com/bash/shift.html
  • 8/13/2019 BASH_CMD

    6/6

    vv Verbosely list directory contents (`ls -l -b')vdir Verbosely list directory contents (`ls -l -b')vi Text Editor

    vmstat Report virtual memory statisticswwait Wait for a process to complete watch Execute/display a program periodicallywc Print byte, word, and line countswhereis Search the user's $path, man pages and source files for

    a programwhich Search the user's $path for a program filewhile Execute commandswho Print all usernames currently logged inwhoami Print the current user id and name (`id -un')

    wget Retrieve web pages or files via HTTP, HTTPS or FTPwrite Send a message to another user

    xxargs Execute utility, passing constructed argument list(s)xdg-open Open a file or URL in the user's preferred application.yes Print a string until interruptedzip Package and compress (archive) files.. Run a command script in the current shell!! Run the last command again### Comment / Remark

    http://ss64.com/vi.htmlhttp://ss64.com/bash/vmstat.htmlhttp://ss64.com/bash/wait.htmlhttp://ss64.com/bash/watch.htmlhttp://ss64.com/bash/wc.htmlhttp://ss64.com/bash/whereis.htmlhttp://ss64.com/bash/which.htmlhttp://ss64.com/bash/while.htmlhttp://ss64.com/bash/who.htmlhttp://ss64.com/bash/whoami.htmlhttp://ss64.com/bash/write.htmlhttp://ss64.com/bash/xargs.htmlhttp://ss64.com/bash/xdg-open.htmlhttp://ss64.com/bash/yes.htmlhttp://ss64.com/bash/zip.htmlhttp://ss64.com/bash/source.htmlhttp://ss64.com/bash/bang.htmlhttp://ss64.com/bash/rem.htmlhttp://ss64.com/bash/rem.htmlhttp://ss64.com/bash/bang.htmlhttp://ss64.com/bash/source.htmlhttp://ss64.com/bash/zip.htmlhttp://ss64.com/bash/yes.htmlhttp://ss64.com/bash/xdg-open.htmlhttp://ss64.com/bash/xargs.htmlhttp://ss64.com/bash/write.htmlhttp://ss64.com/bash/whoami.htmlhttp://ss64.com/bash/who.htmlhttp://ss64.com/bash/while.htmlhttp://ss64.com/bash/which.htmlhttp://ss64.com/bash/whereis.htmlhttp://ss64.com/bash/wc.htmlhttp://ss64.com/bash/watch.htmlhttp://ss64.com/bash/wait.htmlhttp://ss64.com/bash/vmstat.htmlhttp://ss64.com/vi.html