347
edits
Changes
no edit summary
===General Linux Command Info===
*Almost every single command should have an argument (an input for a function)
*A filename in Linux refers to both a file's name and a directory's name
===Common Linux Commands===
{| class="wikitable"
|-
! style="padding: 10px;"| Command
! style="padding: 10px;"| Syntax
! style="padding: 10px;"| Description
|-
| style="padding: 10px;"| cat
| style="padding: 10px;"| cat ''filename''
| style="padding: 10px;"| Display file’s contents to the standard output device (usually your monitor)
|-
| style="padding: 10px;"| cd
| style="padding: 10px;"| cd ''/pathname''
| style="padding: 10px;"| Change to the given directory
|-
|-
| catstyle="padding: 10px;"| chown| cat style="padding: 10px;"| chown ''private_owner:group_owner'' ''filename''| Display file’s contents to style="padding: 10px;"| Changes ownership of the standard output device (usually your monitor)file
|-
| cdstyle="padding: 10px;"| clear| cd ''/pathname''style="padding: 10px;"| clear| Change to style="padding: 10px;"| Clears the given directoryscreen by scrolling (does not delete anything)
|-
| chmod*style="padding: 10px;"| cp| chmod style="padding: 10px;"| cp ''options'' ''modesource'' ''filenamedestination''| Changes style="padding: 10px;"| Copies a file's permissions. from the source to the destination
|-
| chownstyle="padding: 10px;"| find| chown style="padding: 10px;"| find ''private_owner:group_owner/pathname'' ''filenamestring''| Changes ownership of style="padding: 10px;"| Starts at the fileindicated directory and searches for the string in a filename
|-
| clearstyle="padding: 10px;"| grep| clearstyle="padding: 10px;"| grep ''options'' ''pattern'' ''filename''| Clears style="padding: 10px;"| Searches for the pattern in the screen by scrolling (does not delete anything)file
|-
| cpstyle="padding: 10px;"| ifconfig| cp ''options'' ''source'' ''destination''style="padding: 10px;"| ifconfig| Copies a file from the source to style="padding: 10px;"| Displays the destinationcurrent networks available and various information about them
|-
| findstyle="padding: 10px;"| ll| find style="padding: 10px;"| ll ''/pathname'' ''string''| Starts at style="padding: 10px;"| List Long: lists the details of the entire directory or file indicated directory and searches for the string in a filename
|-
| grepstyle="padding: 10px;"| ln| grep style="padding: 10px;"| ln ''options'' ''patternsource'' ''filenamedestination''| Searches style="padding: 10px;"| Link: creates a shortcut. Use -s for the pattern in the file''options'' to create a soft link (more capabilities)
|-
| llstyle="padding: 10px;"| ls| ll style="padding: 10px;"| ls ''/pathname''| List Longstyle="padding: lists the details of 10px;"| Lists the entire files and directories in a given directory or file indicated
|-
| lnstyle="padding: 10px;"| man| ln ''options'' ''sourcestyle="padding: 10px;"| man '' ''destinationcommand''| Linkstyle="padding: creates a shortcut. Use -s 10px;"| Opens the manual page for the ''options'' to create a soft link (more capabilities)given command
|-
| lsstyle="padding: 10px;"| mkdir| ls style="padding: 10px;"| mkdir ''options'/pathname' ''filename''| Lists style="padding: 10px;"| Makes a directory at the given location with the files and directories in a given directoryname
|-
| manstyle="padding: 10px;"| mv| man style="padding: 10px;"| mv ''options''command''source'' ''destination''| Opens style="padding: 10px;"| Moves a file or directory from the manual page for source to the given commanddestination
|-
| mkdirstyle="padding: 10px;"| [[This Is Your Brain On Informatics: Pico|pico]]| mkdir ''options'' style="padding: 10px;"| pico ''filename''| Makes a directory at style="padding: 10px;"| Opens the given location with file in the given namepico text editor
|-
| mvstyle="padding: 10px;"| pwd| mv ''options'' ''source'' ''destination''style="padding: 10px;"| pwd| Moves a file or directory from style="padding: 10px;"| Displays the source to pathname for the destinationcurrent directory
|-
| pwdstyle="padding: 10px;"| rm| pwdstyle="padding: 10px;"| rm ''options'' ''filename''| Displays style="padding: 10px;"| Removes the pathname given file. If -rf is used for the current options, a directoryand its roots will be removed as well
|-
| rmstyle="padding: 10px;"| ssh| rm style="padding: 10px;"| ssh ''options'' ''filenameuser@machine''| Removes style="padding: 10px;"| Remotely logs into the given file. If -rf is used for machine with the options, a directory and its roots will be removed as wellgiven user name
|-
| sshstyle="padding: 10px;"| sudo| ssh ''options'' style="padding: 10px;"| sudo ''user@machinecommand''| Remotely logs into the given machine with style="padding: 10px;"| Allows super user privileges for the given user namecommand (requires root password). sudo su allows login to root
|-
| sudostyle="padding: 10px;"| tar| sudo style="padding: 10px;"| tar -xzvf ''commandfilename''| Allows super user privileges for style="padding: 10px;"| Extracts files with the given command (requires root password)extension *.tar.gz or *. sudo su allows login to roottgz
|-
| tarstyle="padding: 10px;"| touch| tar -xzvfstyle="padding: 10px;"| touch ''filename''| Extracts files style="padding: 10px;"| Creates an empty file with the extension *.tar.gz or *.tgzgiven name
|-
| touchstyle="padding: 10px;"| wget| touch style="padding: 10px;"| wget ''filenameinternet address''| Creates an empty style="padding: 10px;"| Downloads a file with from a given nameinternet address
|-
|}
{{This Is Your Brain On Informatics}}
[[Category:This Is Your Brain On Informatics]]