Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 OPERATING SYSTEM


  Funny Linux commands

1. slYou will see a train moving from the right to left on the screen.Install : $ sudo apt-get install slRun : $ slIt has options like -aiFe:-a An accident seems to happen. You'll feel pity for people who cry for help.-l shows little one.-F It flies.-e Allow interrupt by Ctrl+C.We can also make fun of other people by setting an alias like below:$alias ls=slWhen the user types ls, he will see the train instead of the file list.2. fortuneOutput one statement, it can be a joke, or famous saying. Or if you install the Chinese version, you will get Tang poem as well.Install : $sudo apt-get install ...

16,673 1       LINUX FUNNY COMMAND FIGLET SL


  Hello, Kernel!

When we learn module programming, the first small program must be hello, kernel!. For a novice, how do we avoid some mistakes and how to fix the bugs we have when writing the first module program? Is there any example we can refer to? Here is one example.1. Write the hello.c01#include <linux/init.h>02#include <linux/module.h>03#include <linux/kernel.h>04//Compulsory05//Module lincese declaration06MODULE_LICENSE("GPL");07//Module load function08static int hello_init(void)09{10    printk(KERN_ALERT "hello,I am edsionte\n");11   ...

3,395 0       LINUX MODULE KERNEL


  10 tools to make your shell script more powerful

Many people mistakenly think that shell scripts can only be run in command line. In fact shell can also call some GUI components such as menus,alert dialogs, progress bar etc. You can control the final output, cursor position and various output effects. Here we introduce some tools which can help you create powerful, interactive and user friendly Unix/Linux shell scripts.1. notify-sendThis command can let you inform the process to send a desktop notification to users. This can be used to send prompt to users or display some information to users. You can download it :$ sudo apt-get install libn...

6,962 0       GUI SHELL ZENITY


  Surface Pro available in mainland China on April 2

According to 36Kr, the Surface Pro will available in mainland China, Australia, France, Germany, Hong Kong , New Zealand and the United Kingdom starting from the end of March. Now the confirmed news is Surface Pro will be on sale in mainland China at 9:00pm on April 2 officially.The Surface Pro price in the United States is 64GB/$899, 128GB/$999. If it's the same in China, then the cheapest Surface Pro should be nearly ¥5600,the 128 GB Surface Pro will be up to ¥6200.Surface Pro configuration is:Intel Core i5 processor10.6-inch display Intel HD Graphics 4000 image processorResolution o...

4,092 0       CHINA SALE SURFACE PRO


  Build RPM package on Linux

1. Check the OS version and core version#uname -a#more /etc/redhat-release2. Create relative directories/usr/src/redhat/SOURCES    //Store source codes, patches, icons etc/usr/src/redhat/SPECS        //Store specs about the process of building RPM packages/usr/src/redhat/BUILD     //File after uncompressed are stored here/usr/src/redhat/RPMS     //Store the binary files built with rpmbuild/usr/src/redhat/SRPMS   //Store source code package built with rpmbuild #mkdir -p /usr/src/redhat/#cd /usr/src/redhat/...

5,942 0       LINUX BUILD RPM


  Linux Clock : CST,UTC and NTP setup

1. There is an option when you set up clock on installing Linux: system clock users UTC, so what does UTC mean?It's Universal Time Coordinated(UTC), there are two different times in GPS system: one is UTC , the other one is LT(Local Time). The difference between these two is just the timezone difference, UTC is the time in timezone 0. If the local time in Beijing is 8 o'clock in the morning, then UTC time is 0 o'clock, which is a 8 hour difference.2. In Linux, when we use date to check the time, we may get 17 December,2008 Wednesday 09:04:14 CST. What does CST ,mean here?CST is China Standard ...

21,444 0       LINUX CLOCK UTC


  How to find which process a file is being written by in Linux?

Some people ask a file is being written by one process and they want to check this process, but they cannot find the process even with sof.This question is very common and there are many solutions, here we introduce a straightforward method. In Linux, each file will be stored on one device and of course there will be a relative inode, then we can use vfs.write to know who is writing the inode on one specified device continuously. Luckily there is inodewatch.stp in the installation package of systemtap, it locates at /usr/local/share/doc/systemtap/examples/io. It is used foe above.Let take a lo...

4,546 0       LINUX PROCESS FILE WRITE


  /dev/null and /dev/tty in Linux

In Linux, there are two special files /dev/null and /dev/tty. /dev/null will drop all the data written to it, i.e, when program writes data to this file, it means the program has completed the data write operation. But in  fact it does nothing, if you just want the status of a command but not the output of a command, this feature will be very useful. See below shell codes:    /> vi test_dev_null.sh        #!/bin/bash    if grep hello TestFile > /dev/null    then        echo "Foun...

15,845 0       LINUX /DEV/NULL /DEV/TTY