LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-10-2013, 04:04 AM   #1
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71

Rep: Reputation: 25
How to deliberately bork a terminal


I know how to bork a terminal using reset or tset but how do I bork a terminal deliberately using the BASH shell.

I've tried a few things which I thought would work but have been unsuccessful.
 
Old 09-10-2013, 06:21 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
stty 0
 
Old 09-10-2013, 06:34 AM   #3
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71

Original Poster
Rep: Reputation: 25
Thanks for the reply - that did not work on either my Ubuntu or CentOS systems.

Code:
$ stty 0
stty: standard input: unable to perform all requested operations

Last edited by rgdacosta; 09-10-2013 at 06:43 AM.
 
Old 09-10-2013, 09:49 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
"cat"ing a binary file usually borks the terminal.
 
Old 09-10-2013, 05:22 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Bash it with a very heavy shell, like a conch shell. I suggest that you unplug it first, unless you want sparks.
 
Old 09-10-2013, 09:11 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
sundialsvcs, thanks for the best laugh I've had in weeks!!!!!
 
Old 09-10-2013, 09:24 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
attach it to a Windows OS.
 
Old 09-11-2013, 04:17 AM   #8
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71

Original Poster
Rep: Reputation: 25
haha thanks for the laughs ;-)

Using cat on a binary file, or even /dev/urandom doesn't work anymore.
 
Old 09-11-2013, 07:25 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Quote:
Originally Posted by Habitual View Post
attach it to a Windows OS.
Oh, come now, don't be cruel to the poor thing ... what did it ever do to you? I mean, "hitting it over the head with a conch-shell" is one thing, but that's going too far!
 
Old 09-11-2013, 08:35 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
Oh, come now, don't be cruel to the poor thing ... what did it ever do to you? I mean, "hitting it over the head with a conch-shell" is one thing, but that's going too far!
You're right, of course. I apologize to the Terminal.
 
Old 09-11-2013, 01:26 PM   #11
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Although it will crash the system as well:
Code:
:(){ :|:& };:

Last edited by jamison20000e; 09-11-2013 at 01:27 PM.
 
  


Reply

Tags
bash



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PVR-150 plus NVIDIA equals bork? Quakeboy02 Linux - Hardware 15 11-18-2008 05:09 PM
Can I deliberately break Plesk 8.0.1 dependencies ? PlymWS Linux - Server 0 10-25-2006 06:29 AM
wierd nfs + mdadm bork (worked before) bobbens Debian 2 10-03-2005 03:17 PM
To deliberately disconnect? grautu Linux - Security 2 08-26-2005 05:38 PM
Managed to bork XFce4... infidel Linux - Software 3 01-18-2005 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration