10 ways to finding things in linux

Basically i am talking about Linux terminal and without installing any new programs. I will also not use any programming languages. I am not digging into regexp details, please refer to their documentations. Many programs have their own regexp and syntax so I usually pipe the output to the input of egrep or such to satisfy my needs. This document is for reference and only states how i use them. These are obviously not the only ways.

1. ls (dir also does things similar) : List the contents. Ls is the first command I use to search in Linux. Obviously the very basic but also, very useful if you know in which directory your file is. This command was written partly by Richard stallman himself. To do a simple search just type ls followed by the file name. Other examples:

    # To search file names with a fixed file-type (Using Wildcard)
    # Here I am searching for mp3 files in my current directory
    ls -C *.mp3
   
    * this matches everything that has a '.mp3' anywhere in the filename and puts it in a column (-C).
   
    # To search for file whose filetype and first starting character I remember
    # I am searching for mp3 files whose first character is y
    ls | egrep '^[Yy].*.mp3$'
   
    * this matches everything starting('^' for starting character) with a 'Y or y' and any number (here '*' for any number of times) of character (here '.' for any character) following it which ends in ".mp3" (here $ as end of line).
   
2. locate : Locate is a command line file search utility which finds file by it's name until regexp is used. Unlike ls, locate searches for files in all directories. But it has a major drawback. It uses a database('/var/lib/mlocate/mlocate.db') to search from, which might not be updated all the time.

    # To update the database use
    updatedb

3. who (also, finger and w) : While a little different, it searches for users who are logged into the computer right now. Finger provides a little more detail
    # To find out who logged into the system after the computer booted type:
    who -a -H
   
4. whatis (apropos and man) : These commands searches for discription about some binaries, files whose manual pages are available. It is very useful to find out if an application is installed which additionally displays descriptions (short description in whatis and broader and long description in apropos and a complete manual with man) of the application. whatis and apropos supports regex and wildcards.

    # To find out if ls is installed in your system with whatis type:
    whatis ls
   
    # To do the same with apropos
    apropos -e ls

Ubuntu 10.10. What I did to my computer.

SAfter installing Ubuntu 10.10 into my computer the following are the list of software and tweaks i did to my computer. If you like it you can use it.

1. Installed Firefox addons:
    a. Adblock Plus
    b. DownloadHelper
    c. Download Statusbar
    d. FaviconizeTab
    e. Fission
    f. Greasemonkey
    g. Omnibar
    h. Smart Stop/Reload
    i.  SmoothWheel
    j.  Stylish (installed the style: Highlight Input&Textarea)
    k. Firebug
    l. FireFTP
    m. Chromifox Basic
   
    And Did the following Tweaks
    Typed about:config in url bar and changed the following values
   
    a. media.autoplay.enabled->false
    b. network.buffer.cache.size->8192
    c. network.http.max-connections-per-server->30
    d. network.http.pipelining->true
    e. network.http.pipelining.maxrequests->20
    f.  network.http.pipelining.ssl->true
    g. network.http.request.max-start-delay->2
    h. plugins.hide_infobar_for_missing_plugin->true
    i.  plugins.hide_infobar_for_outdated_plugin->true
    j.  network.http.keep-alive->true
    k. network.http.max-persistent-connections-per-server->30
   
    PS: you can enable pipelining for proxy in the same manner too.

2. Installed software in Ubuntu:
    1. Gimp
    2. Vlc Media Player
    3. Docky
    4. Clementine Music Player
    5. Zeitgeist Engine
    6. Gloobus-preview
    7. elementary desktop
    8. Nautilus elementary
    9.  Elementary theme for nautilus
    10  Recoll Search engine
    11. Artha Dictionary
    12. Hotot Twitter Client
    13. Geany
    14. Wine
    15. CCSM
    16. apt-fast
    17. nautilus-script-manager
    18. nautilus-terminal
    19. skype
    20. vim
    21. Global-Menu Applet
    22. Nmap
    23. Ethereal
    24. Wireshark
    25. Experimental Plugins for Compiz
        -> sudo apt-fast install compiz-fusion-bcop compiz-dev \
            build-essential libtool \
            libglu1-mesa-dev libxss-dev \
            libcairo2-dev git-core
        -> git close git://anongit.compiz.org/users/soreau/scripts
        -> cd git
        -> ./compiz-addons install all
    26. Ubuntu Tweak
    27. Pdf Suffler
    28. axel
    29. hugin
    30. bum
    31. pdfedit

3. Plugins/addons
    a. Adobe Flash Plugin
    b. OpenJDK
    c. Gstreamer Plugins
    d. Ubuntu Restricted Extras
    e. Any hardware drivers which i may need   
   
4. Addons for gedit
    a. Auto Tab
    b. Browser Preview
    c. Class Browser
    d. Tabs Extended
    f.  File Browser Pane

5. Tweaks for ubuntu
    a. Sanitize panels
    b. Adjust fonts and resolution
    c. Put up nice background picture
    d. change vlc looks to minimalistic and without menus
    e. change desktop edge settings
    f. change number of workplaces and their arrangements
    g. Increase memory size in ooffice and choose small icon sets
    h. customize ooffice toolbars and fonts
    i. Disable help agent in ooffice
    j. Tweak vimrc file and bashrc files
    k. Stop unused application from starting up

Posted via email from Linux fanatic

Untitled

My Linux box was running mysql from the start and I did have no clue. It was not in my startup applications list, neither in my init.d folders.

But whenever i did nmap of localhost, i could see the mysql port open. I could kill mysql service, need to kill it multiple times, only then it used to die.

I even installed "sysv-rc-conf" so that i could stop it at run levels, but it was not running at any runlevels. I then did "update-rc.d mysql disable". Which didn't work either.

Later I found that there was a file called "mysql.conf" in /etc/init/ folder. I renamed the file to mysql.conf.disabled and it worked out. Hope this will help others who have the same problem.

Posted via email from Linux fanatic

Copyright © 2008 - nepabuntu - is proudly powered by Blogger
Smashing Magazine - Design Disease - Blog and Web - Dilectio Blogger Template