SlideShare a Scribd company logo
Improving your shell usage by Chris Sinjakli (Sinjo)
Why? Department computers CS student (Pro Skills module) Web hosting IRC
Navigation Where am I? The  pwd  command will show you the current working directory:
Navigation Changing directory The  cd  command will change to the directory specified:
Navigation Listing directory contents The  ls  command lists the contents of current directory:
Navigation Other useful commands: cp <source> <destination>  - Copies <source> to <destination> mv <source> <destination>   - Moves <source> to <destination> mkdir <name>  - Creates a directory called <name> rm <target>  - Removes <target> (no “Are you sure?”, be careful)
Editing files Nano Quick to get started with, shortcuts at the bottom
Editing files Vim More advanced, learn how to quit before opening
Editing files Emacs Also advanced, I’ve never actually used it
Command History A faster way to retype commands Previously typed commands are saved Up/down arrow keys can be used to access them Not that useful if you want to go far back
Command History Searching through History Press Ctrl+r to search your shell history. As you type, it will narrow down hits in your history.
Leaving things running Running programs stop when you exit the shell Programs can be left running inside the  screen  application
Leaving things running Creating a session You can create a new session by just using the &quot;screen&quot; command.
Leaving things running Resuming a session The -r switch is used to  reattach  a screen session. $ screen -r [your previous session will appear here]
Leaving things running Resuming a session If you're already attached to a session from somewhere else, you'll see something like this: $ screen -r There are screens on:         15716.pts-4.viglab-26   (Attached) There is no screen to be resumed.
Leaving things running Resuming a session You can  remote detach  the running session, allowing you to attach it elsewhere. $ screen -d [remote detached] You can combine the two switches 'screen -dr' to  remote detach, then reattach here .
Persistent IRC connection Leave  irssi  (an IRC client) running in screen No disconnects/reconnects to the server Chat history Used by a lot of our members
Persistent IRC connection With screen open: Run irssi $ irssi Connect to a server (irc.uwcs.co.uk for ours) /connect <Server Address>
Persistent IRC connection Joining a channel /join #compsoc
Persistent IRC connection Switching channels Hotkeys for lower number channels (Alt + 1-0, Alt + q-o) /win <number>  command for anything above that Alt + a  to go to next window with activity
Persistent IRC connection Leaving a channel In the channel you wish to leave: /part <Quit Message>
Our services Web hosting Database Shell access to member server (Codd)
Web hosting Included in membership YourName.uwcs.co.uk by default 1GB of quota (upgradable) Support for PHP sites (WordPress, Drupal, etc) Available to societies
Web hosting Basics YourName.uwcs.co.uk Files in ~/public_html/ Just Works (most of the time, some things like Drupal need more config on our side) Need to request a shell account
Web hosting Your own domain Register with your preferred registrar Point DNS records to our server Nudge techteam to configure our web server What is your domain name? Which directory is your site in?
Database MySQL database for each user Needs requesting separately to shell account Necessary for WordPress, etc Also available to societies
Questions?
Contact IRC: irc.uwcs.co.uk Forums: forums.uwcs.co.uk Email: compsoc-exec@uwcs.co.uk There is a topic on the forums for this talk.

More Related Content

ODP
Drush - More Beer, Less Effort
PPTX
Ubuntu vps setup
ODP
Ubuntu For Intranet Services
PPTX
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
PDF
Backing up thousands of containers
PDF
Plesk CLI Wrapper
PDF
三分鐘用 PMM 架好監控系統
ODP
Day 3-Important stuff
Drush - More Beer, Less Effort
Ubuntu vps setup
Ubuntu For Intranet Services
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
Backing up thousands of containers
Plesk CLI Wrapper
三分鐘用 PMM 架好監控系統
Day 3-Important stuff

What's hot (20)

PDF
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
PDF
A Better WordPress Workflow with WP-CLI
ODP
Tools used for debugging
TXT
Powershell direct
PPTX
Deployment with Fabric
ODP
PHP: The Beginning and the Zend
PPTX
Getting Started with Capistrano
PPTX
Dhcp Server Linux Server
PDF
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
PPTX
Capistrano - automate all the things
PPT
Capistrano
PPTX
How to stop a VPN DNS leak.
PDF
Using filesystem capabilities with rsync
ODP
Installing Drupal 7 in Debian Environment
PDF
mail server
PPT
DNS and Troubleshooting DNS issues in Linux
PDF
How to Transfer Magento Project from One Server to another Server
PDF
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
PDF
Aeon mike guide transparent ssl filtering
How to turn any dynamic website into a static site | 24.01.2018 | Artem Danil...
A Better WordPress Workflow with WP-CLI
Tools used for debugging
Powershell direct
Deployment with Fabric
PHP: The Beginning and the Zend
Getting Started with Capistrano
Dhcp Server Linux Server
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Capistrano - automate all the things
Capistrano
How to stop a VPN DNS leak.
Using filesystem capabilities with rsync
Installing Drupal 7 in Debian Environment
mail server
DNS and Troubleshooting DNS issues in Linux
How to Transfer Magento Project from One Server to another Server
Configuring apache, php, my sql, ftp, ssl, ip tables phpmyadmin and server mo...
Aeon mike guide transparent ssl filtering
Ad

Viewers also liked (7)

PPTX
Great APIs
PPTX
Improving your shell usage - 2009
PPTX
Mutation Testing - Ruby Edition
PPTX
Mutation Testing
PPTX
Byteman - Carving up your Java code
PPT
Mutation testing
PDF
Mutation Testing
Great APIs
Improving your shell usage - 2009
Mutation Testing - Ruby Edition
Mutation Testing
Byteman - Carving up your Java code
Mutation testing
Mutation Testing
Ad

Similar to Improving your shell usage - 2010 (20)

PDF
Linux Cheat Sheet.pdf
PPT
Linux
ODP
Linuxs1
PPT
Unix/Linux Basic Commands and Shell Script
PDF
2023comp90024_linux.pdf
PDF
3.1.a linux commands reference
PDF
Linux system administration
DOC
58518522 study-aix
PDF
Linux Administration for Developers
PDF
Unix Basics
DOCX
Linux basic commands
PPT
Basic 50 linus command
PDF
The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
PDF
Unix _linux_fundamentals_for_hpc-_b
PPT
Linuxnishustud
PDF
MCLS 45 Lab Manual
PPT
Linux commands
PDF
Linux Getting Started
PPT
Linux ppt
Linux Cheat Sheet.pdf
Linux
Linuxs1
Unix/Linux Basic Commands and Shell Script
2023comp90024_linux.pdf
3.1.a linux commands reference
Linux system administration
58518522 study-aix
Linux Administration for Developers
Unix Basics
Linux basic commands
Basic 50 linus command
The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
Unix _linux_fundamentals_for_hpc-_b
Linuxnishustud
MCLS 45 Lab Manual
Linux commands
Linux Getting Started
Linux ppt

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Machine learning based COVID-19 study performance prediction
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
A Presentation on Artificial Intelligence
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Machine learning based COVID-19 study performance prediction
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
A comparative analysis of optical character recognition models for extracting...
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MYSQL Presentation for SQL database connectivity
Building Integrated photovoltaic BIPV_UPV.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
A Presentation on Artificial Intelligence
sap open course for s4hana steps from ECC to s4
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Assigned Numbers - 2025 - Bluetooth® Document
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Big Data Technologies - Introduction.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf

Improving your shell usage - 2010

  • 1. Improving your shell usage by Chris Sinjakli (Sinjo)
  • 2. Why? Department computers CS student (Pro Skills module) Web hosting IRC
  • 3. Navigation Where am I? The pwd command will show you the current working directory:
  • 4. Navigation Changing directory The cd command will change to the directory specified:
  • 5. Navigation Listing directory contents The ls command lists the contents of current directory:
  • 6. Navigation Other useful commands: cp <source> <destination> - Copies <source> to <destination> mv <source> <destination> - Moves <source> to <destination> mkdir <name> - Creates a directory called <name> rm <target> - Removes <target> (no “Are you sure?”, be careful)
  • 7. Editing files Nano Quick to get started with, shortcuts at the bottom
  • 8. Editing files Vim More advanced, learn how to quit before opening
  • 9. Editing files Emacs Also advanced, I’ve never actually used it
  • 10. Command History A faster way to retype commands Previously typed commands are saved Up/down arrow keys can be used to access them Not that useful if you want to go far back
  • 11. Command History Searching through History Press Ctrl+r to search your shell history. As you type, it will narrow down hits in your history.
  • 12. Leaving things running Running programs stop when you exit the shell Programs can be left running inside the screen application
  • 13. Leaving things running Creating a session You can create a new session by just using the &quot;screen&quot; command.
  • 14. Leaving things running Resuming a session The -r switch is used to  reattach  a screen session. $ screen -r [your previous session will appear here]
  • 15. Leaving things running Resuming a session If you're already attached to a session from somewhere else, you'll see something like this: $ screen -r There are screens on:         15716.pts-4.viglab-26   (Attached) There is no screen to be resumed.
  • 16. Leaving things running Resuming a session You can remote detach the running session, allowing you to attach it elsewhere. $ screen -d [remote detached] You can combine the two switches 'screen -dr' to  remote detach, then reattach here .
  • 17. Persistent IRC connection Leave irssi (an IRC client) running in screen No disconnects/reconnects to the server Chat history Used by a lot of our members
  • 18. Persistent IRC connection With screen open: Run irssi $ irssi Connect to a server (irc.uwcs.co.uk for ours) /connect <Server Address>
  • 19. Persistent IRC connection Joining a channel /join #compsoc
  • 20. Persistent IRC connection Switching channels Hotkeys for lower number channels (Alt + 1-0, Alt + q-o) /win <number> command for anything above that Alt + a to go to next window with activity
  • 21. Persistent IRC connection Leaving a channel In the channel you wish to leave: /part <Quit Message>
  • 22. Our services Web hosting Database Shell access to member server (Codd)
  • 23. Web hosting Included in membership YourName.uwcs.co.uk by default 1GB of quota (upgradable) Support for PHP sites (WordPress, Drupal, etc) Available to societies
  • 24. Web hosting Basics YourName.uwcs.co.uk Files in ~/public_html/ Just Works (most of the time, some things like Drupal need more config on our side) Need to request a shell account
  • 25. Web hosting Your own domain Register with your preferred registrar Point DNS records to our server Nudge techteam to configure our web server What is your domain name? Which directory is your site in?
  • 26. Database MySQL database for each user Needs requesting separately to shell account Necessary for WordPress, etc Also available to societies
  • 28. Contact IRC: irc.uwcs.co.uk Forums: forums.uwcs.co.uk Email: compsoc-exec@uwcs.co.uk There is a topic on the forums for this talk.