SlideShare a Scribd company logo
File types and Listing                                          File Security
       Thoughtful Solutions                             file filename            Classify the file                      chmod mode filename
  Creatively Implemented and Communicated               strings filename         Show any ASCII strings in a file                         Change security settings on file
                                                        cat filename             Display contents of file to STDOUT     chown user [:group] filename
 http://www.thoughtful-solutions.info/
                                                        more filename            Display contents of file one                             Change owner [and owning group] of
  Basic Solaris Commands                                                         screenful at a time                                      file
                                                                                                                        chgrp group filename
                                                        head   filename          Display first 10 lines of file
           Quick Reference Card                                                                                                           Change owning group of file
                                                        head   -n filename       Display first n lines of file
Conventions                                                                                                             umask mode        Set default creation permissions
<CR>               RETURN key                           tail   filename          Display last 10 lines of file
<ESC>              ESCAPE key                           tail   -n filename       Display last n lines of file           Symbolic modes
<DEL>              DELETE key                           tail   -f filename       Recursively display last 10 lines of         Mode          Meaning            Mode            Meaning
<Ctrl-X>           press <Control> key and type x                                file
italics            items to be replaced by your own     cut                      Extract character or fields from
                                                                                                                               u             user                   r             read
                   requirements                                                  text                                          g             group                  w             write
                                                        wc filename              Count lines, words and characters             o             other                  x          execute
Shell Commands                                                                   in file
passwd             Change password                      diff f1 f2               Find differences between two files            a              all                  u+s            setuid
logout             End terminal session                 diff3 f1 f2 f3           Find differences between 3 files              =             assign                g+s            setgid
                                                        sort filename            Sort file alphabetically by first             +              add                  +t          sticky bit
File Hierarchy                                                                   letter
cd dir1            Change to directory dir1             uniq                     Report or filter out repeated lines
                                                                                                                               -            remove
ls                 List files in directory                                                                              Octal modes
ls -l              List files in detail                 Redirection                                                     Base directory mode is 777. Base file mode is 666
mkdir dir1         Create new directory dir1            STDIN                    Standard Input, typically the                 user                   group                  other
rmdir dir1         Remove directory dir1                                         keyboard
                                                                                                                          r        w    x      r        w      x         r    w          x
cp f1 f2           Copy file f1 to f2                   STDOUT                   Standard Output, typically the
mv f1 [f2…] dir1   Move files f1 to fn to directory                              screen                                   4        2    1       4       2      1         4    2          1
                   dir1                                 STDERR                   Standard Error, where errors are
                                                                                                                                   7                   7                      7
mv dir1 dir2       Rename directory dir1 as dir2                                 sent. Typically the screen
rm filename        Delete (remove) file filename        comm > file              Output of comm creates file
                                                                                                                        Shell Wildcards
ln file1 name      Create a hard link to file1 called   comm < file              Contents of file used as input to
                   name                                                          comm                                        Meta-                            Meaning
ln -s file1 name   Create a soft link to file1 called   comm 2> filename         Error messages from comm sent to          character
                   name                                                          file                                              *        Any character
pwd                Show path to current directory       comm >> filename         Output from comm appended to                      ?        Any single character
                                                                                 file
Getting Help                                            cat file <<EOF           Create a document called file                 [ ]          A range of characters
man name           Show man page for command            data…                    containing data
                   name                                 EOF
man -k subject     Show man pages relating to           comm1 | comm2            Output from comm1 used as input
                   subject                                                       to comm2
man -s# subject    Show man page relating to            mkfifo name              Create a named pipe called name         This work is licensed under the Creative Commons Attribution-
                   subject in section number #          mknod name p             Create a named pipe called name             ShareAlike License. To view a copy of this license, visit
man -s# Intro      Show introductory man page for                                                                        http://creativecommons.org/licenses/by-sa/2.0/
                   section #
Translations and Searching                                Networking                                                  set -o emacs           Recall commands, edit and re-execute
tr set1 set2         Translates set1 to set2              telnet hostname [port]                                                             using emacs commands
sed                  Powerful text manipulation tool                        Connects to host and opens a              Shell Initialization
grep pattern filename                                                       shell. Optionally on specified port.      /etc/profile ($HOME/.profile)
                     Finds lines containing pattern in    ftp hostname      Connects to a remote host to               sh, bash, ksh system wide (per user) init
                     file                                                   transfer files                             (system wide init has no effect in CDE environment).
grep -v pattern filename                                  ssh hostname [command ]                                     /etc/.login ($HOME/.login)
                     Finds lines NOT containing                             Makes a secure connection to               csh, tcsh system wide (per user) init
                     pattern in file                                        host and opens a shell.                    (system wide init has no effect in CDE environment).
grep -i pattern filename                                                                                              $HOME/.cshrc
                     Finds all lines containing           Processes and Process Control                                per user csh, tcsh init
                     pattern in file ignoring case        ps                   Displays processes running on a         (order: /etc/.login → $HOME/.cshrc → $HOME/.login)
find path condition                                                            host                                   $HOME/.kshrc
                     Finds files matching condition       prstat               Displays iterating list of processes    per user ksh init
                     from path downwards                                       by CPU usage                            (order: /etc/profile → $HOME/.profile → $HOME/.kshrc)
find path -inum n Finds hard links, i.e. All files with   command &            Run command in background              $HOME/.bashrc
                                                          jobs                 Print list of jobs                      per user bash init
                     the same i-node number
                                                                               Resume foreground job n                 (order: /etc/profile → $HOME/.profile → $HOME/.bashrc)
who                  Displays users on system             fg [%n]
who am i             Shows real user id                   bg [%n]              Resume background job n
                                                                                                                      Shell Programming
w                    Displays users on system             stop %n              Suspend background job n
                                                                                                                      #!path/to/shell        'sh-bang' is a special string which
id                   Shows effective username & UID,      kill [%n]            Kill job n
                                                                                                                                             indicates that the path following
                     and group membership                 <Ctrl-c>             Interrupt process
                                                                                                                                             contains the location of the command
                     Searches /usr/dict/words for         <Ctrl-z>             Suspend current process
look word                                                                                                                                    to run the script
                     word                                 kill n               Kill process n
                                                          kill -9 n            Terminate process n                    Flow Control
Regular Expressions                                       <Ctrl-s>             Stop screen scrolling
                                                                                                                                   sh;bash;ksh               csh;tcsh
    .     Any character                                   <Ctrl-q>             Resume screen output
                                                          sleep n              Sleep for n seconds                    if-     if [ condition ];       if (condition)
    ^      Start of line                                                                                              then-   then                    then
                                                                                                                      else    actions_1;              action_1;
    $      End of line                                    Shells and Variables                                                elif [ condition ];     else if (condition)
                                                          variable=value       Create local variable variable                 then                    then
    *      Any number of the preceding characters                              with value value                               actions_2;              action_2;
                                                                                                                              else                    else
    ?      A single character                             export variable      Make variable an
                                                                                                                              actions_3;              action_3;
                                                                               environmental variable                         fi                      endif
   [ ]     Holds a range                                  unset variable       Remove environment variable
                                                                                                                      do      while [ condition ]; while (condition)
   [^ ]    Holds a negated range                          set                  Show local variables                           do                   actions
                                                                                                                      while
                                                          env                  Show environmental variables                   actions;             end
  ( )    Creates a submatch
                                                          alias name1 name2 Create command alias                              done
   1-9    Reference a submatch                           alias                Show command aliases                   until   until [ condition ];         Not available
          Escapes special character meanings             unalias name1        Remove command alias name1                     do
                                                                                                                              actions;
                                                          history              Display recent commands                        done
                                                          ! n                  Submit recent command n
                                                          set -o vi            Recall commands, edit and re-          for     for arg in list… ;      foreach arg (list)
                                                                                                                              do                      actions
                                                                               execute using vi commands                      actions;                end
                                                                                                                              done

More Related Content

What's hot (11)

Commands
CommandsCommands
Commands
 
Unix
UnixUnix
Unix
 
5_File_Handling_Commands__vi_editor_and_environment_variables
5_File_Handling_Commands__vi_editor_and_environment_variables5_File_Handling_Commands__vi_editor_and_environment_variables
5_File_Handling_Commands__vi_editor_and_environment_variables
 
Linux
LinuxLinux
Linux
 
Linux manual
Linux manualLinux manual
Linux manual
 
Comenzi unix
Comenzi unixComenzi unix
Comenzi unix
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Chapter 4 Linux Basic Commands
Chapter 4 Linux Basic CommandsChapter 4 Linux Basic Commands
Chapter 4 Linux Basic Commands
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
 
Linux one page manual
Linux one page manualLinux one page manual
Linux one page manual
 
Hadoop Inside
Hadoop InsideHadoop Inside
Hadoop Inside
 

Similar to Sunadmin

Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent card
Bui Van Cuong
 
gnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheetgnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheet
linkedinstaging
 
gnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheetgnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheet
linkedinstaging
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
Dima Gomaa
 
Lecture1 2 intro-unix
Lecture1 2 intro-unixLecture1 2 intro-unix
Lecture1 2 intro-unix
nghoanganh
 
(Ebook) linux shell scripting tutorial
(Ebook) linux shell scripting tutorial(Ebook) linux shell scripting tutorial
(Ebook) linux shell scripting tutorial
jayaramprabhu
 
Treebeard's Unix Cheat Sheet
Treebeard's Unix Cheat SheetTreebeard's Unix Cheat Sheet
Treebeard's Unix Cheat Sheet
wensheng wei
 
Lecture1 3 shells
Lecture1 3 shellsLecture1 3 shells
Lecture1 3 shells
nghoanganh
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 

Similar to Sunadmin (20)

Os lab manual
Os lab manualOs lab manual
Os lab manual
 
Unix
UnixUnix
Unix
 
Unix
UnixUnix
Unix
 
Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent card
 
gnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheetgnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheet
 
gnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheetgnu-coreutils-cheat-sheet
gnu-coreutils-cheat-sheet
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
 
Lecture1 2 intro-unix
Lecture1 2 intro-unixLecture1 2 intro-unix
Lecture1 2 intro-unix
 
21bUc8YeDzZpE
21bUc8YeDzZpE21bUc8YeDzZpE
21bUc8YeDzZpE
 
(Ebook) linux shell scripting tutorial
(Ebook) linux shell scripting tutorial(Ebook) linux shell scripting tutorial
(Ebook) linux shell scripting tutorial
 
21bUc8YeDzZpE
21bUc8YeDzZpE21bUc8YeDzZpE
21bUc8YeDzZpE
 
Treebeard's Unix Cheat Sheet
Treebeard's Unix Cheat SheetTreebeard's Unix Cheat Sheet
Treebeard's Unix Cheat Sheet
 
Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja
 
Unix Trainning Doc.pptx
Unix Trainning Doc.pptxUnix Trainning Doc.pptx
Unix Trainning Doc.pptx
 
Basic unix
Basic unixBasic unix
Basic unix
 
Lecture1 3 shells
Lecture1 3 shellsLecture1 3 shells
Lecture1 3 shells
 
Quick guide of the most common linux commands
Quick guide of the most common linux commandsQuick guide of the most common linux commands
Quick guide of the most common linux commands
 
Unix command line concepts
Unix command line conceptsUnix command line concepts
Unix command line concepts
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 

More from Ganesh Kumar Veerla (15)

Boot prom basics
Boot prom basicsBoot prom basics
Boot prom basics
 
Omw doc
Omw docOmw doc
Omw doc
 
Chapter 12 user roles
Chapter 12 user rolesChapter 12 user roles
Chapter 12 user roles
 
Chapter 6 polices
Chapter 6 policesChapter 6 polices
Chapter 6 polices
 
Chapter 5 HP OVOw Node management
Chapter 5 HP OVOw Node managementChapter 5 HP OVOw Node management
Chapter 5 HP OVOw Node management
 
Chapter 3 HP OVOW architecture
Chapter 3 HP OVOW architectureChapter 3 HP OVOW architecture
Chapter 3 HP OVOW architecture
 
Chapter 2 hp ovo service driven management
Chapter 2  hp ovo service driven managementChapter 2  hp ovo service driven management
Chapter 2 hp ovo service driven management
 
Hp open view(hp ov)
Hp open view(hp ov)Hp open view(hp ov)
Hp open view(hp ov)
 
Windows command line_sheet_v1
Windows command line_sheet_v1Windows command line_sheet_v1
Windows command line_sheet_v1
 
imp websites for solaris and linux
imp websites for solaris and linux imp websites for solaris and linux
imp websites for solaris and linux
 
Managerof managerarchitecture
Managerof managerarchitectureManagerof managerarchitecture
Managerof managerarchitecture
 
Hp open view
Hp open viewHp open view
Hp open view
 
Solaris
SolarisSolaris
Solaris
 
Nsm overview
Nsm overviewNsm overview
Nsm overview
 
Ovo and nnm work flow at ahcc
Ovo and nnm work flow at ahccOvo and nnm work flow at ahcc
Ovo and nnm work flow at ahcc
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 

Sunadmin

  • 1. File types and Listing File Security Thoughtful Solutions file filename Classify the file chmod mode filename Creatively Implemented and Communicated strings filename Show any ASCII strings in a file Change security settings on file cat filename Display contents of file to STDOUT chown user [:group] filename http://www.thoughtful-solutions.info/ more filename Display contents of file one Change owner [and owning group] of Basic Solaris Commands screenful at a time file chgrp group filename head filename Display first 10 lines of file Quick Reference Card Change owning group of file head -n filename Display first n lines of file Conventions umask mode Set default creation permissions <CR> RETURN key tail filename Display last 10 lines of file <ESC> ESCAPE key tail -n filename Display last n lines of file Symbolic modes <DEL> DELETE key tail -f filename Recursively display last 10 lines of Mode Meaning Mode Meaning <Ctrl-X> press <Control> key and type x file italics items to be replaced by your own cut Extract character or fields from u user r read requirements text g group w write wc filename Count lines, words and characters o other x execute Shell Commands in file passwd Change password diff f1 f2 Find differences between two files a all u+s setuid logout End terminal session diff3 f1 f2 f3 Find differences between 3 files = assign g+s setgid sort filename Sort file alphabetically by first + add +t sticky bit File Hierarchy letter cd dir1 Change to directory dir1 uniq Report or filter out repeated lines - remove ls List files in directory Octal modes ls -l List files in detail Redirection Base directory mode is 777. Base file mode is 666 mkdir dir1 Create new directory dir1 STDIN Standard Input, typically the user group other rmdir dir1 Remove directory dir1 keyboard r w x r w x r w x cp f1 f2 Copy file f1 to f2 STDOUT Standard Output, typically the mv f1 [f2…] dir1 Move files f1 to fn to directory screen 4 2 1 4 2 1 4 2 1 dir1 STDERR Standard Error, where errors are 7 7 7 mv dir1 dir2 Rename directory dir1 as dir2 sent. Typically the screen rm filename Delete (remove) file filename comm > file Output of comm creates file Shell Wildcards ln file1 name Create a hard link to file1 called comm < file Contents of file used as input to name comm Meta- Meaning ln -s file1 name Create a soft link to file1 called comm 2> filename Error messages from comm sent to character name file * Any character pwd Show path to current directory comm >> filename Output from comm appended to ? Any single character file Getting Help cat file <<EOF Create a document called file [ ] A range of characters man name Show man page for command data… containing data name EOF man -k subject Show man pages relating to comm1 | comm2 Output from comm1 used as input subject to comm2 man -s# subject Show man page relating to mkfifo name Create a named pipe called name This work is licensed under the Creative Commons Attribution- subject in section number # mknod name p Create a named pipe called name ShareAlike License. To view a copy of this license, visit man -s# Intro Show introductory man page for http://creativecommons.org/licenses/by-sa/2.0/ section #
  • 2. Translations and Searching Networking set -o emacs Recall commands, edit and re-execute tr set1 set2 Translates set1 to set2 telnet hostname [port] using emacs commands sed Powerful text manipulation tool Connects to host and opens a Shell Initialization grep pattern filename shell. Optionally on specified port. /etc/profile ($HOME/.profile) Finds lines containing pattern in ftp hostname Connects to a remote host to sh, bash, ksh system wide (per user) init file transfer files (system wide init has no effect in CDE environment). grep -v pattern filename ssh hostname [command ] /etc/.login ($HOME/.login) Finds lines NOT containing Makes a secure connection to csh, tcsh system wide (per user) init pattern in file host and opens a shell. (system wide init has no effect in CDE environment). grep -i pattern filename $HOME/.cshrc Finds all lines containing Processes and Process Control per user csh, tcsh init pattern in file ignoring case ps Displays processes running on a (order: /etc/.login → $HOME/.cshrc → $HOME/.login) find path condition host $HOME/.kshrc Finds files matching condition prstat Displays iterating list of processes per user ksh init from path downwards by CPU usage (order: /etc/profile → $HOME/.profile → $HOME/.kshrc) find path -inum n Finds hard links, i.e. All files with command & Run command in background $HOME/.bashrc jobs Print list of jobs per user bash init the same i-node number Resume foreground job n (order: /etc/profile → $HOME/.profile → $HOME/.bashrc) who Displays users on system fg [%n] who am i Shows real user id bg [%n] Resume background job n Shell Programming w Displays users on system stop %n Suspend background job n #!path/to/shell 'sh-bang' is a special string which id Shows effective username & UID, kill [%n] Kill job n indicates that the path following and group membership <Ctrl-c> Interrupt process contains the location of the command Searches /usr/dict/words for <Ctrl-z> Suspend current process look word to run the script word kill n Kill process n kill -9 n Terminate process n Flow Control Regular Expressions <Ctrl-s> Stop screen scrolling sh;bash;ksh csh;tcsh . Any character <Ctrl-q> Resume screen output sleep n Sleep for n seconds if- if [ condition ]; if (condition) ^ Start of line then- then then else actions_1; action_1; $ End of line Shells and Variables elif [ condition ]; else if (condition) variable=value Create local variable variable then then * Any number of the preceding characters with value value actions_2; action_2; else else ? A single character export variable Make variable an actions_3; action_3; environmental variable fi endif [ ] Holds a range unset variable Remove environment variable do while [ condition ]; while (condition) [^ ] Holds a negated range set Show local variables do actions while env Show environmental variables actions; end ( ) Creates a submatch alias name1 name2 Create command alias done 1-9 Reference a submatch alias Show command aliases until until [ condition ]; Not available Escapes special character meanings unalias name1 Remove command alias name1 do actions; history Display recent commands done ! n Submit recent command n set -o vi Recall commands, edit and re- for for arg in list… ; foreach arg (list) do actions execute using vi commands actions; end done