Showing posts with label #computers. Show all posts
Showing posts with label #computers. Show all posts

Monday, June 30, 2014

[Solved] Linux Commands Challenge : 007

Fancy your Linux Administration skills ? Take this challenge and answer these simple 5 questions related to everyday tasks of Linux Administration.

Winner : Congratulations to Sankar P for getting the highest number [ 2 ] of correct solutions.


  1. How do you restore GRUB bootloader to MBR of your primary hard disk ?
      • grub-install /dev/sda

  2. What does initrd contain ?
      • It contains the initial RAM disk, i.e., the initial root file system that is mounted prior to locating the real root file system

  3. How do you unpack the contents of an RPM without installing it ?
      • rpm2cpio | copi -id

  4. What is the maximum number of primary partitions you can have on a hard disk ?
      • 4

  5. How to boot into single user mode using the GRUB boot loader ?
      • After selecting the kernel you are interested to boot into, edit the kernel command line and add “S” to the end of the kernel command

Monday, May 19, 2014

[Solved] Linux Commands Challenge : 002

Fancy your Linux skills ? Take this challenge and answer these simple 5 questions on Linux Environment variables.

Update : Added Solutions


  1. How can variables defined in one Bash Shell script be made visible in its child Bash Shell script ?
      • You need to export the variable in the parent Bash Shell Script, for the variables to be visible in its child Bash Shell script.

  2. How can one find out the type of the Shell he/she is using ?
      • echo $SHELL

  3. Name the C function call that can be used in a C program to fetch the value of a Shell Environment variable
      • getenv()

  4. One can use "printenv" command to list all the Global Environment variables, but what command can we use to list the Local Environment Variables ?
      • You can use "set". But, it list all the environment variables, global and local. You will have to write a Shell Script to prune out Global environment variables from the output of "set" to derive the final list of Local Environment variables. Local environment variables are the variables that are local to the current shell.

  5. How can you find out the current Bash Shell's parent process id ?
      • echo $PPID

Linux Weekly NewsBytes : 1422

Here is a list of the latest, most happening events and news items from the Linux World. Keep reading to find out what's making the most noise around Linux this week

GNOME 3.12.2 has been released

Make sure you take a good look at the GNOME 3 cheat sheet
  • This is the second update for GNOME 3.12. Significant fixes in the almost 40 modules that have been updated include :
    • IMAPx changes to evolution-data-server
    • Memory leak fixes in epiphany
    • Windows Live support has been *removed* from Gnome-online-accounts
    • Gnome-shell bug fixes mainly for airplane mode
    • Several fixes for Gnome-Shell-Extensions, GTK+, gvfs, nautilus, totem, tracker & zenity
  • With Microsoft withdrawing support for Windows XP, many Linux distributions are using this as the best opportunity to lure Windows users to the safe world of Linux. Linux Lite [ at least going by the screenshots ] is a safe bet for the first timer who wants to step out of his closed room of Windows and open the door to the beautiful world of Linux.
  • This is rather old news, but worth mentioning it here, I thought. For all your enthusiastic would-be Kernel developers, don't miss out the Eudyptula Challenge. Its a simple challenge which gives you one task to work on. You need to follow all the Linux Kernel Development community guidelines for creating these tasks. This helps to drill you through the real development process. You get your second task only after completing the first. And then the third and so on. Once you have completed 20 tasks, you would be all set and ready to contribute more quality code into Linux Kernel.

Monday, May 12, 2014

[Solved] Linux Commands Challenge : 001

Fancy your Linux skills ? Take this challenge and answer these simple 5 questions on Linux Commands.

Update : Added Solutions

Winner : Congratulations to Laxmeesha TV for getting the highest number [ 3 ] of correct solutions.


  1. Which Linux command would you use to replace all the occurrences of "Computer Science" in the file "subjects.list" with “CS”. Make sure you create a backup of the original file as well.
      • sed -i “.bkp” s/“Computer Science”/CS/g subjects.list

  2. What is the command to list all the hidden files of the present working directory ?
      • ls -la

  3. What is the command to list only the first two lines of subjects.list file ?
      • head -2 subjects.list

  4. Print the contents of subjects.list file in reverse order. [ Hint : Cats have tails ]
      • cat subjects.list | tail -r

  5. Which Bash command would you issue on a Linux machine to create a coredump of a running program. [ Hint : The flight was aborted due to bad weather ]
      • kill -6