Changes between Initial Version and Version 1 of oldwiki/linuxcmds


Ignore:
Timestamp:
Oct 28, 2014, 11:16:25 AM (10 years ago)
Author:
les
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • oldwiki/linuxcmds

    v1 v1  
     1Linux Commands
     2What are some basic Linux commands?
     3Below you will find a list of basic Linux commands.
     4
     5ls      Show files and folder in the current folder
     6cp      Copy files from one location to another, ex. cp filename newdir/filename
     7less    Opens a textfile in read-only, ex less filename
     8cd ..   Changes directory - one level lower. If you use cd /folder name - it will change directory to that folder.
     9
     10
     11
     12Commonly-Used SGE Commands
     13qsub    Submit a Job
     14qstat   Determine the Status of a Job
     15qdel    Cancel a job
     16qhold   Place a hold on a queued job to prevent it from running
     17qrls    Release a job held with qhold
     18qhost   Display Node Information
     19qmon    An X-Windows interface to SGE commands
     20
     21Here are more with links to the syntax:
     22A
     23alias Create your own name for a command
     24arch print machine architecture
     25ash ash command interpreter (shell)
     26awk (gawk) pattern scanning and processing language
     27
     28
     29B
     30basename Remove directory and suffix from a file name
     31bash GNU Bourne-Again Shell
     32bsh Command interpreter (Shell)
     33bc Command line calculator
     34bunzip2 Unzip .bz2 files
     35
     36
     37C
     38cat Concatenate a file print it to the screen
     39chgrp Change the group designation of a file
     40chmod Change file permissions
     41chown Change the owner of a file
     42cjpeg Compress an image file to a JPEG file
     43clear Clear terminal screen (command line)
     44comm Compare two sorted files
     45stty cooked Formatting the display of text in a terminal
     46cp Copy command
     47cpio Copy files to and from archives
     48csh C Shell
     49cut Print selected parts of lines to standard output
     50
     51
     52D
     53date Display date and time
     54dc Command line calculator
     55df Show amount of disk space free
     56diff Determine difference between two files
     57diff3 Determine difference between 3 files
     58dig Interrogate DNS name servers
     59djpeg Decompress a JPEG file to an image file
     60dmesg Print or control the kernel ring buffer (print out bootup messages)
     61dnsdomainname Show the system's DNS domain name
     62doexec Run an executable with an arbitrary argv
     63domainname Show or set the system's NIS/YP domain name
     64dos2unix Converts plain text files in DOS/MAC format to UNIX format
     65du Show disk useage
     66dumpkeys Write keyboard driver's translation tables to std output
     67
     68
     69E
     70echo Display a line of text
     71ed Line-oriented text editor
     72egrep Print lines matching a pattern
     73elinks A text mode WWW browser (supports frames)
     74env Dislay the path
     75ex Start Vim in ex mode
     76eject Eject media from device ( command line )
     77
     78
     79F
     80factor Display prime factors of a number
     81false Exit with a status code indicating failure
     82fdisk The fdisk command with usage examples
     83fgrep Variant of grep
     84find Find a file
     85finger Displays information about the system users
     86fixps Try to fix common PostScript problems that break postprocessing
     87free Display free memory
     88
     89
     90G
     91grep Search for a pattern using regular expression
     92gtar See the tar command
     93gunzip Unzip .gz files
     94gzip Compress using Lempel-Ziv coding (LZ77)
     95
     96
     97H
     98halt Stop the system
     99hdparm Get/set harddisk parameters
     100head Print the first 10 lines of a file to standard output
     101hostname Show or set the system's host name
     102history Display entire command history
     103HISTSIZE Change history size
     104httpd Start Apache
     105
     106
     107I
     108identify Describes the format and characteristics of image files.
     109id Print information for username, or the current user
     110ifconfig Display network and hardware addresses
     111igawk Gawk with include files
     112ipcalc Calculate IP information for a host
     113
     114
     115K
     116kbd_mode Report or set the keyboard mode (RAW, MEDI- UMRAW or XLATE)
     117kill Terminate a process
     118
     119
     120L
     121last Show listing of last logged in users
     122lastlog Formats and prints the contents of the last login log /var/log/lastlog file
     123link Call the link function to create a link to a file
     124links See elinks
     125ln Create a link to the specified TARGET with optional LINK_NAME
     126loadkeys Load keyboard translation tables
     127locate Locate a file
     128login Sign on
     129look Displays any lines in file which contain "string" as a prefix.
     130ls List directory contents
     131lsmod List loaded kernel modules
     132lynx Command to start the Lynx browser
     133
     134
     135M
     136mac2unix Converts plain text files in DOS/MAC format to UNIX format
     137mail A mail processing system, which has a command syntax like ed
     138man Display a particular manual entry
     139manweb Manweb is part of the Netpbm package
     140mdu Display the amount of space occupied by an MSDOS directory
     141mkdir Create a directory
     142mkfs Make a filesystem on a drive
     143mknod Make block or character special files
     144mktemp Make temporary filename (unique)
     145more Page through text one screenful at a time.
     146mount Mount a filesystem/device
     147mt Control magnetic tape drive operation
     148mv Move and / or rename files
     149
     150
     151:
     152
     153
     154
     155
     156
     157N
     158namei Follow a pathname until a terminal point is found
     159nano An enhanced free Pico clone
     160nc arbitrary TCP and UDP connections and listens
     161(note that nc is also called the client interface
     162to the NEdit program but it is not the
     163command that invokes nedit-nc on current systems)
     164ncftp Browser program for the File Transfer Protocol
     165nedit-nc nedit-nc is the client interface to the NEdit text editor
     166netstat Display verbose info about network processes and ports
     167nice Run a command with modified priority
     168nisdomainname Show or set system's NIS/YP domain name
     169nslookup query internet domain name servers
     170
     171
     172P
     173paste Merge lines of files
     174pdf2dsc Generate a PostScript page list of a PDF document
     175pdf2ps Convert PDF file "input.pdf" to PostScript(tm) in "output.ps"
     176pdfinfo Print contents of the 'Info' dictionary (plus some other useful information) from a PDF file
     177pdftotext Convert pdf files to plain text
     178perl (start) Practical Extraction and Report Language
     179pgawk The profiling version of gawk
     180pico Text editor that comes with Pine (from the University of Washington)
     181pine Email program used by The University of Washington
     182ping6 Ping
     183ping Send ICMP ECHO_REQUEST to network hosts
     184pinky A lightweight 'finger' program;
     185pr Format for printing
     186ps Processes running
     187ps2ascii Ghostscript translator from PostScript or PDF to ASCII
     188ps2epsi Generate conforming Encapsulated PostScript
     189ps2frag Obsolete shell script for the PSfrag system
     190ps2pdf12 Convert PostScript to PDF 1.2 (Acrobat 3 and later compatible) using ghostscript
     191ps2pdf13 Convert PostScript to PDF 1.3 (Acrobat 4 and later compatible) using ghostscript
     192ps2pdf14 Use ps2pdfwr: Convert PostScript to PDF without specifying Compatibility Level, using ghostscript
     193ps2pdf Convert PostScript to PDF using ghostscript
     194ps2pdfwr Convert PostScript to PDF without specifying Compatibility Level, using ghostscript
     195ps2pk creates a TeX pkfont from a type1 PostScript font
     196ps2ps ps2ps uses gs to convert PostScript(tm) file "input.ps" to simpler and (usually) faster PostScript in "output.ps"
     197psbook Rearranges pages from a PostScript document into "signatures" for printing books or booklets
     198pwd Print Working Directory
     199
     200
     201Q
     202quota display disk usage and limits
     203
     204
     205R
     206resize Xterm window size
     207readelf Displays information about ELF files
     208reboot Stop the system, poweroff, reboot
     209red red is a restricted ed: it can only edit files in the current directory and cannot execute shell commands
     210rename Rename files
     211rmdir Remove a directory
     212rm Remove files or directories
     213rpm rpm command options
     214rundig Sample script to create a search database for ht://Dig
     215rview The GUI version of Vim in easy mode with restrictions
     216rvi Vi / Vim editor
     217
     218
     219S
     220sed Stream editor
     221setfont Load EGA/VGA console screen font
     222set gid Set group id
     223set serial Get / set Linux serial port info
     224set uid Set user id
     225sfdisk Modified fdisk program
     226sftp Secure file transfer protocol (ftp)
     227sh Shell (BASH)
     228shred Safely remove data from disk drive
     229sleep Delay for a specified amount of time
     230slocate Security Enhanced version of the GNU Locate
     231sort Sort lines of a text file
     232ssh Secure shell connection command
     233stty change and print terminal line settings
     234stty raw Unformatted output to terminal
     235su Become super user ( root )
     236switchdesk Graphical and text mode interface for choosing desktop environment
     237sync Force changed blocks to disk, update the super block
     238ssh Secure shell connection command
     239
     240
     241T
     242tail Print the last 10 Lines of a file standard output
     243tar Create an Archive
     244tcsh Enhanced completely compatible version of the Berkeley UNIX C shell, csh
     245tee Copy standard input to each file, and also to standard output
     246telnet User interface to the telnet protocol
     247time Run the specified program command with the given arguments
     248touch Change file timestamps
     249tracepath6 See tracepath
     250tracepath Trace path to a network host discovering MTU along this path
     251traceroute6 See traceroute
     252traceroute Print the route packets take to network host
     253tree Display file tree
     254true Exit with a status code indicating success
     255tty Print name of terminal connected to standard output
     256
     257
     258U
     259umask File creation mask / Bash builtins
     260umount Detache file system(s) mentioned from file hierarchy
     261uname Print system information ( kernel version )
     262unicode_start Put keyboard and console into Unicode (UTF-8) mode
     263unicode_stop Undo the effect of unicode_start
     264unlink Call the unlink function to remove the specified file
     265uniq Remove duplicate lines from sorted file
     266updatedb Update the slocate database
     267unset gid Group id change
     268unset uid User id change
     269untar Unarchive ( untar ) a file
     270unzip Unzip .zip files
     271useradd Add new user
     272users Output who is currently logged in according to system records
     273usleep Sleep a given number of microseconds. default is 1
     274
     275
     276V
     277view Start vim in read-only mode
     278vi Start the vi editor
     279
     280
     281W
     282w Show who is logged on and what they are doing
     283wc Word count of a file
     284wget Non-interactive download of files from the Web
     285whatis Search the whatis database for complete words (command names)
     286whereis Locate a command or file
     287which Find command path
     288whoami Print effective userid
     289who show who is logged on
     290whois Client for the whois service
     291
     292
     293X,Y,Z
     294xinit Start Xserver
     295xpdf Portable Document Format (PDF) file viewer for X windows
     296xrandr Change resolution running Xwindows ( command line )
     297ypdomainname show or set the system's NIS/YP domain name
     298zcat Compress or expand files
     299zip Compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows NT, Minix,
     300Atari and Macintosh, Amiga and Acorn RISC OS. It is analogous to a
     301combination of the UNIX commands tar(1) and compress(1) and is
     302compatible with PKZIP (Phil Katz’s ZIP for MSDOS
     303systems)
     304zipinfo List detailed information about a ZIP archive