PDA

View Full Version : Command Line fun



Six_Digits
May 8th, 2008, 06:46 AM
Note last 3 lines:

dan@desktop:~$ sudo aptitude -help
aptitude 0.4.6.1
Usage: aptitude [-S fname] [-u|-i]
aptitude [options] <action> ...
Actions (if none is specified, aptitude will enter interactive mode):

install - Install/upgrade packages
remove - Remove packages
purge - Remove packages and their configuration files
hold - Place packages on hold
unhold - Cancel a hold command for a package
markauto - Mark packages as having been automatically installed
unmarkauto - Mark packages as having been manually installed
forbid-version - Forbid aptitude from upgrading to a specific package version.
update - Download lists of new/upgradable packages
safe-upgrade - Perform a safe upgrade
full-upgrade - Perform an upgrade, possibly installing and removing packages
forget-new - Forget what packages are "new"
search - Search for a package by name and/or expression
show - Display detailed information about a package
clean - Erase downloaded package files
autoclean - Erase old downloaded package files
changelog - View a package's changelog
download - Download the .deb file for a package
reinstall - Download and (possibly) reinstall a currently installed package

Options:
-h This help text
-s Simulate actions, but do not actually perform them.
-d Only download packages, do not install or remove anything.
-P Always prompt for confirmation or actions
-y Assume that the answer to simple yes/no questions is 'yes'
-F format Specify a format for displaying search results; see the manual
-O order Specify how search results should be sorted; see the manual
-w width Specify the display width for formatting search results
-f Aggressively try to fix broken packages.
-V Show which versions of packages are to be installed.
-D Show the dependencies of automatically changed packages.
-Z Show the change in installed size of each package.
-v Display extra information. (may be supplied multiple times)
-t [release] Set the release from which packages should be installed
-q In command-line mode, suppress the incremental progress indicators.
-o key=val Directly set the configuration option named 'key'
--with(out)-recommends Specify whether or not to treat recommends as
strong dependencies
-S fname Read the aptitude extended status info from fname.
-u Download new package lists on startup.
-i Perform an install run on startup.

This aptitude does not have Super Cow Powers.
dan@desktop:~$ whatis SuperCowPowers
SuperCowPowers: nothing appropriate.

LaRoza
May 8th, 2008, 06:50 AM
apt-get moo




aptitude moo -v
aptitude moo -v -v
aptitude moo -v -v -v
aptitude moo -v -v -v -v
aptitude moo -v -v -v -v -v
aptitude moo -v -v -v -v -v -v

Drone4four
May 8th, 2008, 08:04 AM
Wow LaRoza you got a lot of Thanks from people. You have good karma. I aspire to be like you.

Six_Digits
May 8th, 2008, 08:08 AM
Wow LaRoza you got a lot of Thanks from people. You have good karma. I aspire to be like you.

Indeed.

I got this one:

dan@desktop:~$ sudo apt-get moo
[sudo] password for dan:
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...

Ub1476
May 8th, 2008, 10:17 AM
This will infect your terminal with a Star Wars movie:


telnet towel.blinkenlights.nl

Nunu
May 8th, 2008, 10:34 AM
Dang its the entire movie LOL

WorldTripping
May 8th, 2008, 11:37 AM
There is a whole host of command line stuff here..

http://www.ubuntugeek.com/useful-and-fun-things-to-do-with-the-ubuntu-terminal.html