Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old April 26th, 2007   #1
locke.dragon
Dipped in Ubuntu
 
locke.dragon's Avatar
 
Join Date: Mar 2007
Location: Genova, Italy
Beans: 517
Ubuntu 7.04 Feisty Fawn
How To: Interesting Terminal

Since I'm a noob myself and don't know much about the inner workings of the terminal, I won't shed any light on that subject. But, I would like to share some interesting and useful terminal code I've found. This code was only tested on Ubuntu Feisty Fawn, but it will also work on most Mac OSX computers and should work on all Ubuntu releases.

I plan on updating when I find something new.

If you have any others, please post them!

Entertainment

Watch Star Wars
Code:
 
telnet towel.blinkenlights.nl
Chat with a bot
Code:
 
telnet the-funk.net 7000
Custom ascii text
Code:
banner
See how long your machine has been running
Code:
uptime
To see the arbitrary precision calculator (7^500 is interesting! That's 7 to the 500th power)
Code:
bc
Must enter below code to use the next few
Code:
sudo apt-get install cowsay
See your fortune
Code:
fortune
Use cowsay (replace “message” with your own text in single quotes)
Code:
cowsay 'message'
Cowsay your Amarok lyrics
Code:
dcop amarok player lyrics | cowsay
Must enter below code to use the next few
Code:
sudo apt-get emacs21
--------------------------------------------------

To play 'snake'
Code:
emacs21
Once emacs21 opens, hit...
Quote:
Esc>>”X”
Type in...
Code:
snake
--------------------------------------------------

To play 'tetris'
Code:
emacs21
Once emacs21 opens, hit...
Quote:
Esc>>”X”
Type in...
Code:
tetris
--------------------------------------------------

Useful

Show some computer stats
Code:
lspci
Access a dictionary through terminal (must have a working internet connection)
Note: Replace 'word' with whatever you'd like to search for (without quotes)
Code:
curl dict://dict.org/d:word
Check system temperature and battery charge
Code:
 
acpi -t
See a list of all running processes
Code:
ps aux
View the current time, date, and year
Code:
date
Show a simple calendar
Code:
cal
See what programs are running with the path names
Code:
ps -aux
See your current IP address
Code:
ifconfig -a
See what your system is doing at startup
Code:
dmesg
Show information about the computer users
Code:
finger -l
Show current Ubuntu version
Code:
cat /etc/issue
System Recovery

Backup xorg.conf
Code:
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
Replace current xorg.conf with a previously made backup
Code:
 
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
Delete auto xorg.conf backups
Code:
 
sudo rm /etc/X11/xorg.conf.2007*
Use nano to edit xorg.conf (works in “terminal-only” mode)
Code:
 
sudo nano /etc/X11/xorg.conf
Keyboard Shortcuts

Terminal keyboard shortcut for paste
Quote:
Ctrl>>Shift>>Alt>>”V”
Or...
Quote:
Shift>>Insert
Advanced Users Only
Open up a file browser with all privileges
Code:
gksudo nautilus
Edit color options (advanced users only)
Code:
gedit .gtkrc-2.0
Give a .sh file executable priveledges
Code:
chmod +x <file name>

Last edited by locke.dragon; July 18th, 2007 at 11:05 AM..
locke.dragon is offline   Reply With Quote
Old April 26th, 2007   #2
dev_person
First Cup of Ubuntu
 
dev_person's Avatar
 
Join Date: Apr 2007
Beans: 3
Re: How To: Interesting Terminal

Those are some useful tips. Thanks for posting them.
dev_person is offline   Reply With Quote
Old April 26th, 2007   #3
Iarwain ben-adar
Has an Ubuntu Drip
 
Iarwain ben-adar's Avatar
 
Join Date: May 2006
Location: Belgium
Beans: 708
The Feisty Fawn Testing
Re: How To: Interesting Terminal

Keyboard Shortcuts

Terminal keyboard shortcut for paste
Quote:
Shift-Insert
That's the one i always use


Iarwain
Iarwain ben-adar is offline   Reply With Quote
Old April 26th, 2007   #4
locke.dragon
Dipped in Ubuntu
 
locke.dragon's Avatar
 
Join Date: Mar 2007
Location: Genova, Italy
Beans: 517
Ubuntu 7.04 Feisty Fawn
Re: How To: Interesting Terminal

thanks! i'll put that one in!
locke.dragon is offline   Reply With Quote
Old April 26th, 2007   #5
Iarwain ben-adar
Has an Ubuntu Drip
 
Iarwain ben-adar's Avatar
 
Join Date: May 2006
Location: Belgium
Beans: 708
The Feisty Fawn Testing
Re: How To: Interesting Terminal

Entertainment

Fortune
Quote:
fortune
Cowsay (need to apt-get it )
Quote:
cowsay 'message'
Cowsay your amarok lyrics
Quote:
dcop amarok player lyrics | cowsay
Banner
Quote:
banner
Hope to help


Iarwain
Iarwain ben-adar is offline   Reply With Quote
Old April 26th, 2007   #6
nhandler
Ubuntu Developer
 
nhandler's Avatar
 
Join Date: Aug 2006
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: How To: Interesting Terminal

Those are pretty cool. Especially the Start Wars thing. I never new about these things.
__________________
Be sure to check out the Community Ubuntu Documentation and the Ubuntu Team Wiki.
nhandler is offline   Reply With Quote
Old April 26th, 2007   #7
ubuntu27
May the Ubuntu Be With You!
 
ubuntu27's Avatar
 
Join Date: Apr 2005
Location: USA
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: How To: Interesting Terminal

This is not for the terminal perse but:

If you use Ubuntu (if you use GNOME)

Alt+F2 in your keyboard

and then type "free the fish"


2) SUPER COW POWERS:

Code:
aptitude -h
[Comments: Read the last line]

Code:
apt-get moo

Code:
aptitude moo
Code:
aptitude -v moo
Code:
aptitude -v -v moo
Code:
aptitude -v -v -v moo
Code:
aptitude -v -v -v -v moo
Code:
aptitude -v -v -v -v -v moo
Code:
apt-get moo

3) Debian's Top Secret List of planned Release Names:

Code:
zcat /usr/share/doc/linux-image-`uname -r`/changelog.Debian.gz | egrep -e "Release"
Code:
zgrep "The.*Release" /usr/share/doc/dpkg/changelog.Debian.gz

Last edited by ubuntu27; April 26th, 2007 at 04:14 PM..
ubuntu27 is offline   Reply With Quote
Old April 26th, 2007   #8
locke.dragon
Dipped in Ubuntu
 
locke.dragon's Avatar
 
Join Date: Mar 2007
Location: Genova, Italy
Beans: 517
Ubuntu 7.04 Feisty Fawn
Re: How To: Interesting Terminal

bump
locke.dragon is offline   Reply With Quote
Old April 26th, 2007   #9
Seidojohn
First Cup of Ubuntu
 
Join Date: Apr 2007
Location: Chicago, IL - USA
Beans: 9
Kubuntu 7.10 Gutsy Gibbon
Re: How To: Interesting Terminal

I love it! Especially the ASCII Star Wars. Thanks locke.dragon!
Seidojohn is offline   Reply With Quote
Old April 27th, 2007   #10
Iarwain ben-adar
Has an Ubuntu Drip
 
Iarwain ben-adar's Avatar
 
Join Date: May 2006
Location: Belgium
Beans: 708
The Feisty Fawn Testing
Re: How To: Interesting Terminal

Locke,
it's ALT-F2 instead of ALT-F4 for the 'free the fish' thing

Nice list, gets big!


Iarwain
Iarwain ben-adar is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 09:16 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry