SlideShare a Scribd company logo
Basic unix commands
that everyone should know
(Even if you have a mac)
http://bl831.als.lbl.gov/~jamesh/powerpoint/unix_commands.ppt
Slightly more advanced:
http://bl831.als.lbl.gov/~jamesh/elves/manual/tricks.html
What the ~*&?!
~ “tilde” indicates your home directory: /home/you
* “star”: wildcard, matches anything
? wildcard, matches any one character
! History substitution, do not use
& run a job in the background, or redirect errors
#% special characters for most crystallography programs
`([“’ back-quote, backslash, etc. special to shell
_ underscore, use this instead of spaces!!!
Where am I?
Print name of the “current working directory”
This is the default directory/folder where the
shell program will look first for programs, files,
etc. It is “where you are” in Unix space.
pwd
What is a directory?
Directories are places you put files. They are
represented as words connected by the “/”
character. On Windows, they use a “”, just to be
different. On Mac, they are called “folders”.
Whatever you do…
DO NOT PUT SPACES
In directory/file names!
/home/yourname/whatever
What have we here?
List contents of the current working directory
ls –l - long listing, with dates, owners, etc.
ls –lrt - above, but sorted by time
ls –lrt /home/yourname/something
- long-list a different directory
ls
Go somewhere else?
Change the current working directory
cd /tmp/yourname/
- go to your temporary directory
cd - - go back to where you just were
cd - no arguments, go back “home”
“home” is where your login starts
cd
A new beginning…
Create a new directory.
mkdir ./something - make it
cd ./something - go there
ls - check its is empty
mkdir
How do I get help?
Display the manual for a given program
man ls - see manual for the “ls” command
man tcsh - learn about the C shell
man bash - learn about that other shell
man man - read the manual for the manual
to return to the command prompt, type “q”
man
Move it!
Move or rename a file. If you think about it, these are the same
thing.
mv stupidname.txt bettername.txt
- change name
mv stupidplace/file.txt ../betterplace/file.txt
- same name, different directory
mv stupidname_*.img bettername_*.img
Will not work! Never ever do this!
mv
Copy machine
Copy a file. This is just like “mv” except it
does not delete the original.
cp stupidname.txt bettername.txt
- change name, keep original
rm stupidname.txt
- now this is the same as “mv”
cp
“Permission denied” !?
Change the “permission” of a file.
chmod a+r filename.txt
- make it so everyone can read it
chmod u+rwx filename.txt
- make it you can read/write/execute it
chmod –R u+rw /some/random/place
- make it so you can read/write everything under
a directory
chmod
Destroy! Destroy!
Remove a file forever. There is no “trash” or “undelete”
in unix.
rm unwanted_file.txt
- delete file with that name
rm –f /tmp/yourname/*
- forcefully remove everything in your
temporary directory.
Will not prompt for confirmation!
rm
less is more
Display the contents of a text file, page by page
more filename.txt - display contents
less filename.txt - many installs now have a
replacement for “more” called “less” which has nicer search
features.
to return to the command prompt, type “q”
more
After the download…
File compression and decompression
gunzip ~/Downloads/whatever.tar.gz
- decompress
gzip ~/Downloads/whatever.tar
- compress, creates file with .gz extension
gunzip
Where the %$#& is it?
Search through directories, find files
find ./ -name ’important*.txt’
- look at everything under current working directory
with name starting with “important” and ending in “.txt”
find / -name ’important*.txt’
- will always find it, but take a very long time!
find
Did I run out of disk space?
Check how much space is left on disks
df - look at space left on all disks
df . - look at space left in the current working directory
du –sk . | sort –g
- add up space taken up by all files and
subdirectories, list biggest hog last
df du
Why so slow?
Look for programs that may be eating up CPU or memory.
top - list processes in order of CPU usage
jobs - list jobs running in background of current terminal
ps –fHu yourname
- list jobs belonging to your account in order of what
spawned what
ps top
Die Die Die!
Stop jobs that are running in the background
kill %1 - kill job [1], as listed in “jobs”
kill 1234 - kill job listed as 1234 by “ps” or “top”
kill -9 1234 - that was not a suggestion!
kill -9 -g 1234 – seriously kill that job and the
program that launched it
kill

More Related Content

Similar to unix_commands.ppt

Linux basic for CADD biologist
Linux basic for CADD biologistLinux basic for CADD biologist
Linux basic for CADD biologist
Ajay Murali
 
OS Lab Manual.pdf
OS Lab Manual.pdfOS Lab Manual.pdf
OS Lab Manual.pdf
QucHunh15
 
MCLS 45 Lab Manual
MCLS 45 Lab ManualMCLS 45 Lab Manual
MCLS 45 Lab Manual
Lokesh Singrol
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
BITS
 
Linux commands
Linux commandsLinux commands
Linux commandsU.P Police
 
Shell Scripting crash course.pdf
Shell Scripting crash course.pdfShell Scripting crash course.pdf
Shell Scripting crash course.pdf
harikrishnapolaki
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
AdamFallon4
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to LinuxDimas Prasetyo
 
Unix Basics 04sp
Unix Basics 04spUnix Basics 04sp
Unix Basics 04spDr.Ravi
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
KiranMantri
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
Ameer Sameer
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeQasim Khawaja
 
Linux command for beginners
Linux command for beginnersLinux command for beginners
Linux command for beginners
SuKyeong Jang
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
Geeks Anonymes
 
Introduction to the linux command line.pdf
Introduction to the linux command line.pdfIntroduction to the linux command line.pdf
Introduction to the linux command line.pdf
CesleySCruz
 
linux cmds.pptx
linux cmds.pptxlinux cmds.pptx
linux cmds.pptx
divyanshianand3
 

Similar to unix_commands.ppt (20)

Linux basic for CADD biologist
Linux basic for CADD biologistLinux basic for CADD biologist
Linux basic for CADD biologist
 
OS Lab Manual.pdf
OS Lab Manual.pdfOS Lab Manual.pdf
OS Lab Manual.pdf
 
MCLS 45 Lab Manual
MCLS 45 Lab ManualMCLS 45 Lab Manual
MCLS 45 Lab Manual
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Shell Scripting crash course.pdf
Shell Scripting crash course.pdfShell Scripting crash course.pdf
Shell Scripting crash course.pdf
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Unix Basics 04sp
Unix Basics 04spUnix Basics 04sp
Unix Basics 04sp
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
Linux
Linux Linux
Linux
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In Practice
 
Unix 2 en
Unix 2 enUnix 2 en
Unix 2 en
 
Linux command for beginners
Linux command for beginnersLinux command for beginners
Linux command for beginners
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Introduction to the linux command line.pdf
Introduction to the linux command line.pdfIntroduction to the linux command line.pdf
Introduction to the linux command line.pdf
 
linux cmds.pptx
linux cmds.pptxlinux cmds.pptx
linux cmds.pptx
 
Sahul
SahulSahul
Sahul
 

Recently uploaded

急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
CIOWomenMagazine
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 

Recently uploaded (20)

急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 

unix_commands.ppt

  • 1. Basic unix commands that everyone should know (Even if you have a mac) http://bl831.als.lbl.gov/~jamesh/powerpoint/unix_commands.ppt Slightly more advanced: http://bl831.als.lbl.gov/~jamesh/elves/manual/tricks.html
  • 2. What the ~*&?! ~ “tilde” indicates your home directory: /home/you * “star”: wildcard, matches anything ? wildcard, matches any one character ! History substitution, do not use & run a job in the background, or redirect errors #% special characters for most crystallography programs `([“’ back-quote, backslash, etc. special to shell _ underscore, use this instead of spaces!!!
  • 3. Where am I? Print name of the “current working directory” This is the default directory/folder where the shell program will look first for programs, files, etc. It is “where you are” in Unix space. pwd
  • 4. What is a directory? Directories are places you put files. They are represented as words connected by the “/” character. On Windows, they use a “”, just to be different. On Mac, they are called “folders”. Whatever you do… DO NOT PUT SPACES In directory/file names! /home/yourname/whatever
  • 5. What have we here? List contents of the current working directory ls –l - long listing, with dates, owners, etc. ls –lrt - above, but sorted by time ls –lrt /home/yourname/something - long-list a different directory ls
  • 6. Go somewhere else? Change the current working directory cd /tmp/yourname/ - go to your temporary directory cd - - go back to where you just were cd - no arguments, go back “home” “home” is where your login starts cd
  • 7. A new beginning… Create a new directory. mkdir ./something - make it cd ./something - go there ls - check its is empty mkdir
  • 8. How do I get help? Display the manual for a given program man ls - see manual for the “ls” command man tcsh - learn about the C shell man bash - learn about that other shell man man - read the manual for the manual to return to the command prompt, type “q” man
  • 9. Move it! Move or rename a file. If you think about it, these are the same thing. mv stupidname.txt bettername.txt - change name mv stupidplace/file.txt ../betterplace/file.txt - same name, different directory mv stupidname_*.img bettername_*.img Will not work! Never ever do this! mv
  • 10. Copy machine Copy a file. This is just like “mv” except it does not delete the original. cp stupidname.txt bettername.txt - change name, keep original rm stupidname.txt - now this is the same as “mv” cp
  • 11. “Permission denied” !? Change the “permission” of a file. chmod a+r filename.txt - make it so everyone can read it chmod u+rwx filename.txt - make it you can read/write/execute it chmod –R u+rw /some/random/place - make it so you can read/write everything under a directory chmod
  • 12. Destroy! Destroy! Remove a file forever. There is no “trash” or “undelete” in unix. rm unwanted_file.txt - delete file with that name rm –f /tmp/yourname/* - forcefully remove everything in your temporary directory. Will not prompt for confirmation! rm
  • 13. less is more Display the contents of a text file, page by page more filename.txt - display contents less filename.txt - many installs now have a replacement for “more” called “less” which has nicer search features. to return to the command prompt, type “q” more
  • 14. After the download… File compression and decompression gunzip ~/Downloads/whatever.tar.gz - decompress gzip ~/Downloads/whatever.tar - compress, creates file with .gz extension gunzip
  • 15. Where the %$#& is it? Search through directories, find files find ./ -name ’important*.txt’ - look at everything under current working directory with name starting with “important” and ending in “.txt” find / -name ’important*.txt’ - will always find it, but take a very long time! find
  • 16. Did I run out of disk space? Check how much space is left on disks df - look at space left on all disks df . - look at space left in the current working directory du –sk . | sort –g - add up space taken up by all files and subdirectories, list biggest hog last df du
  • 17. Why so slow? Look for programs that may be eating up CPU or memory. top - list processes in order of CPU usage jobs - list jobs running in background of current terminal ps –fHu yourname - list jobs belonging to your account in order of what spawned what ps top
  • 18. Die Die Die! Stop jobs that are running in the background kill %1 - kill job [1], as listed in “jobs” kill 1234 - kill job listed as 1234 by “ps” or “top” kill -9 1234 - that was not a suggestion! kill -9 -g 1234 – seriously kill that job and the program that launched it kill