SlideShare a Scribd company logo
Unix, Linux, and Max OS X Commands
Common Filesystem Commands           Search Commands                              Configuration Files
cd      change directory             find      find files and directories         ~/.bashrc             bash run commands
        cd foo                                 find .                             ~/.bash_profile       bash config file (linux)
        cd ../..                               find . –type f –name “*.java”      ~/.profile            bash config file (mac)
cp      copy files and directories   grep      search for text in files           ~/.vimrc              vi/vim config file
        cp /tmp/foo.txt .                      grep ‘foo’ *
        cp f1 f2 f3 dir1             locate    find files on the entire system    Sample Aliases
gzip    compress a file                        locate java                        alias l=“ls –alF”
        gzip bigfile.tar             mdfind    (like locate; mac os x only)       alias h=history
ls      list files and directories                                                alias cd..=“cd ..”
        ls –alF                      Less-Common Commands                         alias html=“cd /usr/local/html”
        ls -aCF                      cat        concatenate files
mkdir   make a directory             chgrp      change group owner                Common Network Commands
        mkdir dir1 dir2 dir3         chmod      change file mode                  ftp    file transfer protocol
        mkdir –p a/b/c/d             chown      change file owner                 ping   ping a remote system
more    scroll through a file        df         show free disk space              scp    secure copy
        more bigfile.txt             diff       differences between files         ssh    secure shell
ps      show running processes       du         directory usage (du –s *)
        ps auxwww                    head       display the beginning of a file   Command Mashups
mv      move files and directories   history    show history of commands          grep foo *txt | wc -l
        mv f1 f2 f3 dir1             last       show last user login times        history | grep ssh
rm      remove a file or directory   ln         link files and directories        ls –al | more
        rm oldfile                   lsof       list of open files                ls –al | grep Jul | grep –v 2006
        rm –r olddir                 man        man pages (help)                  ls –al | grep ’^d’
tar     archive command              sed        streamline editor                 ps auxwww | grep –i java
        tar czvf all.tgz *           sort       sort input                        ps aux | wc –l
        tar xzvf all.tgz             strings    search for text in binary files   who | wc -l
wc      word count                   tail       display the end of a file
        wc –l file1 file2            who        who is on the system                                 devdaily.com/unix

More Related Content

PPT
Linux command ppt
PDF
Linux systems - Linux Commands and Shell Scripting
PPT
Basic 50 linus command
PDF
Linux basic commands with examples
PDF
Linux cheat-sheet
PDF
Improving notes addressing experience with recent contacts
PDF
Shell scripting
PDF
Course 102: Lecture 10: Learning About the Shell
Linux command ppt
Linux systems - Linux Commands and Shell Scripting
Basic 50 linus command
Linux basic commands with examples
Linux cheat-sheet
Improving notes addressing experience with recent contacts
Shell scripting
Course 102: Lecture 10: Learning About the Shell

What's hot (20)

ODS
Yaygın Linux Komutları ve Windows Karşılıkları
PPTX
PPT
Linux file system
PDF
netfilter and iptables
PDF
Unix Command-Line Cheat Sheet BTI2014
PDF
Administration Linux ( PDFDrive ).pdf
PPTX
The Message Passing Interface (MPI) in Layman's Terms
PPTX
Network File System in Distributed Computing
PPTX
Pipes in Windows and Linux.
PDF
Cours linux complet
PPTX
Basic commands of linux
PDF
50 most frequently used unix linux commands (with examples)
PPT
Storage Management in Linux OS.ppt
PDF
Linux Basic Commands
PPT
PPTX
Linux Kullanım Rehberi
PPTX
Basic unix commands
PPT
Linux: Basics OF Linux
PPT
Linux basic commands
PPTX
Linux
Yaygın Linux Komutları ve Windows Karşılıkları
Linux file system
netfilter and iptables
Unix Command-Line Cheat Sheet BTI2014
Administration Linux ( PDFDrive ).pdf
The Message Passing Interface (MPI) in Layman's Terms
Network File System in Distributed Computing
Pipes in Windows and Linux.
Cours linux complet
Basic commands of linux
50 most frequently used unix linux commands (with examples)
Storage Management in Linux OS.ppt
Linux Basic Commands
Linux Kullanım Rehberi
Basic unix commands
Linux: Basics OF Linux
Linux basic commands
Linux
Ad

Viewers also liked (20)

PDF
Css properties
PDF
Css3 cheat-sheet
PDF
CSS Grid Layout w/ Blueprint CSS
PDF
CssBackgroundImages
PDF
How to create Xpath, CSS, DOM for your Selenium script
ODP
Css jon duckett - flashcards
PDF
Class 2: CSS Selectors, Classes & Ids
PDF
Webpage style with CSS
PDF
Intro to html, css & sass
PDF
CSS Cheatsheet
DOC
Appendix css
 
PDF
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
PDF
CSS font-stacks
PDF
0201398605.User Centered Web Design.9780201398601.33994
PDF
HTML ,CSS ,JQuery Cheat Sheet
PDF
Intro to css & sass
PDF
Building Responsive Layouts
PPTX
CSS Layout Techniques
PDF
Css positioning
Css properties
Css3 cheat-sheet
CSS Grid Layout w/ Blueprint CSS
CssBackgroundImages
How to create Xpath, CSS, DOM for your Selenium script
Css jon duckett - flashcards
Class 2: CSS Selectors, Classes & Ids
Webpage style with CSS
Intro to html, css & sass
CSS Cheatsheet
Appendix css
 
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
CSS font-stacks
0201398605.User Centered Web Design.9780201398601.33994
HTML ,CSS ,JQuery Cheat Sheet
Intro to css & sass
Building Responsive Layouts
CSS Layout Techniques
Css positioning
Ad

Similar to Unix Cheat Sheet (20)

PPT
Linux shell scripting
PDF
Lecture1 2 intro-unix
DOC
Treebeard's Unix Cheat Sheet
PPT
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
PDF
Os lab manual
PDF
3.1.a linux commands reference
PDF
Unix reference sheet
DOC
Some basic unix commands
PDF
Basic commands
PDF
Basic linux commands
PDF
Linux Bash Shell Cheat Sheet for Beginners
ODP
Unix tips and tricks
PPT
8.1.intro unix
PDF
Unix / Linux Command Reference
PDF
Unix commands
PDF
Commands
PDF
Course 102: Lecture 3: Basic Concepts And Commands
PDF
Command Line Tools
DOCX
Directories description
PDF
Linux Administration in 10 Minutes
Linux shell scripting
Lecture1 2 intro-unix
Treebeard's Unix Cheat Sheet
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
Os lab manual
3.1.a linux commands reference
Unix reference sheet
Some basic unix commands
Basic commands
Basic linux commands
Linux Bash Shell Cheat Sheet for Beginners
Unix tips and tricks
8.1.intro unix
Unix / Linux Command Reference
Unix commands
Commands
Course 102: Lecture 3: Basic Concepts And Commands
Command Line Tools
Directories description
Linux Administration in 10 Minutes

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Modernizing your data center with Dell and AMD
PDF
Encapsulation theory and applications.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Electronic commerce courselecture one. Pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
A Presentation on Artificial Intelligence
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Modernizing your data center with Dell and AMD
Encapsulation theory and applications.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation_ Review paper, used for researhc scholars
Electronic commerce courselecture one. Pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
A Presentation on Artificial Intelligence
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology

Unix Cheat Sheet

  • 1. Unix, Linux, and Max OS X Commands Common Filesystem Commands Search Commands Configuration Files cd change directory find find files and directories ~/.bashrc bash run commands cd foo find . ~/.bash_profile bash config file (linux) cd ../.. find . –type f –name “*.java” ~/.profile bash config file (mac) cp copy files and directories grep search for text in files ~/.vimrc vi/vim config file cp /tmp/foo.txt . grep ‘foo’ * cp f1 f2 f3 dir1 locate find files on the entire system Sample Aliases gzip compress a file locate java alias l=“ls –alF” gzip bigfile.tar mdfind (like locate; mac os x only) alias h=history ls list files and directories alias cd..=“cd ..” ls –alF Less-Common Commands alias html=“cd /usr/local/html” ls -aCF cat concatenate files mkdir make a directory chgrp change group owner Common Network Commands mkdir dir1 dir2 dir3 chmod change file mode ftp file transfer protocol mkdir –p a/b/c/d chown change file owner ping ping a remote system more scroll through a file df show free disk space scp secure copy more bigfile.txt diff differences between files ssh secure shell ps show running processes du directory usage (du –s *) ps auxwww head display the beginning of a file Command Mashups mv move files and directories history show history of commands grep foo *txt | wc -l mv f1 f2 f3 dir1 last show last user login times history | grep ssh rm remove a file or directory ln link files and directories ls –al | more rm oldfile lsof list of open files ls –al | grep Jul | grep –v 2006 rm –r olddir man man pages (help) ls –al | grep ’^d’ tar archive command sed streamline editor ps auxwww | grep –i java tar czvf all.tgz * sort sort input ps aux | wc –l tar xzvf all.tgz strings search for text in binary files who | wc -l wc word count tail display the end of a file wc –l file1 file2 who who is on the system devdaily.com/unix