Linux


14
Oct 09

How to display count of files in current directory ?

If you work with files and folders in Linux then sometimes there is need to display count of files in current directory. You can do so easily with simple command in terminal.

If you’re using ubuntu then open up the directory and go to the specific directory using terminal and type the following command.

ls -1 | wc –l

What this command does is it -1 force to show each file in new line and –l is parameter of the word count.


13
Oct 09

How to shutdown windows at specific time?

If you want to shutdown windows at specific time then you can use many small utilities or you can use command line method explained here. There are few freeware utilities which allow you to shutdown windows at specific time. One such utility is chronos shutdown which works with all versions of windows. There is also script for chronos shutdown for linux.

You can use following command to shutdown at specific time.

at 1:00 shutdown –s

This will shutdown your computer at 1am.


8
Oct 09

How to print folder contents list in linux ?

Earlier i discussed about how to list folder contents and to print out with various option. You can check that article here. If you want to achieve similar way in linux then follow the steps below:

1. Open terminal and move to respective directory.
2. Type the following command to print the list of contents in directory to print.txt file.

ls -l > print.txt

After executing this command, you’ll find print.txt file in the respective folder. You can open and check if it lists all folder correctly.


1
Oct 09

How to clean unnecessary files in ubuntu?

There are two programs for ubuntu or Debian that can clean un-necessary files in ubuntu. First program is deborphan and another is GtkOrphan . Also there are two programs (autoremove and autoclean) that you can use to delete partial and orphan files.

To install deborphan follow these steps

sudo apt-get install deborphan

You’ll be prompted for root password before installation begins. Enter the password and installation will proceed.

To delete un-necessary data packages use this command :

sudo deborphan --guess-data | xargs sudo apt-get -y remove –purge

To delete un-necessary data libraries use this command :

sudo deborphan | xargs sudo apt-get -y remove –purge

There is also alternate program which works in similar way like GTKorphan. To install GTKorphan follow these steps :

sudo apt-get install gtkorphan

Once installation is complete you can access GTKOrphan from Menu : System –> Administration –> Remove Orphaned Packages. You’ll be asked for root password. Enter the password and it’ll start cleaning up files.


10
Sep 09

How to add sticky notes on linux desktop?

There are multiple sticky notes application for linux. On ubuntu & Kubuntu, you get one sticky notes application installed. Let’s take a look at alternative sticky notes applications.

1. Sticky Notes : Comes up with gnome.

2. Knotes is part of KDE suite.

3. Pin them up

4. Tomboy Notes

5. Xpad

6. Mindraider is thought organizer that also comes up with Sticky note app.

7. Zim