LINUX TIPS TRICKS 0 (1)HOW TO RELEASE A PATCHSuppose you make a program by the name techviolation.c, and you distributed your program to different users. But now you have made changes in your program and you want that users should have these changes as a patch. Then firstly you should have an old copy of your program lets say techviolation.c.old, now use the following commands.#diff -c techviolation.c.old techviolation.c > techviolation.patchnow users can get the latest updates bypatch > techviolation.patch(2)CREATING DIRECTORIES WITH USER DEFINED PERMISSIONSGenerally when we make a directory(with mkdir command), the permission assigned are the default permissions and if we need to change those default permissions then we use chmod command. But we can give the desired file permissions at the time of creation of the directory itself. Lets see how#mkdir /techviolation -v -m 1777here -m flag is used to set the permission(in above case 1777 i.e read,write,execute to everyone) -v is used for verbose mode.Check the permissions by#ls -lhd /techviolation(3)SOME SHELL-PROMPT TIPS THAT YOU MUST TRY(a)Setting up an alias for a command that is used many times is a general habit. But sometimes we want that the original command should execute. Lets see how it can be done#alias ls=’ls -la’this will create an alias of ls commandBut to run ls as original command use any of the following method#command ls#”ls”#\ls(b)If you are puzzled with too many aliases and want to know whether an alias is assigned to a particular command or not, you can do this by this#type lsthis command is used to find whether alias is there for ls command or not#unalias lsto remove the alias and recover the original ls effect(c)Finding files.Suppose you want to find files with extension ‘.txt’ and ‘.jpg’ in the rot directory then use this command#find / -type f -iname “*.txt” -or -iname”*.jpg”-type f is used to find all the filesto exclude hidden files in the result use ‘!’ operator#find / -type f -iname “*.txt” ! -iname”*.jpg”(d)To open an application in command line(in GNOME), use gnome-open#gnome-open techviolation.xisFile and the application associated with it will be opened(4)How to identify Zombie processesWhen a process dies it immediately moves to Zombie state, until the parent process picks the child’s exit status from the process table. You can get the list of Zombie processes from the following command#ps aux | awk ‘{print $8 ” ” $2}’ | grep -w Zyou will get process id of Zombie processes as the output(5)TO DISPLAY PROCESSES THAT ARE CONSUMING MORE RESOURCES#top | head -n 10 | tail -n 1via LINUX TIPS TRICKS (1)HOW TO RELEASE A PATCH Suppose you make a program by the name techviolation.c, and you distributed your program to different users. But ... Διαβάστε περισσότερα »
nokia 5800 tips and tricks 0 Here are some nokia 5800 tips and tricks that you all must try to get best out of your nokia(1)To add 3D effect to your theme(a really cool trick) menu>settings>personal>Themes>General>options>theme effects turn it on.(2)Go to dialer and long press the # key to switch between Silent and General mode.(3)You can snooze your alarm by by rotating the phone upside down.(4)For making an incoming call silent rotate your phone facing downwards.(5)When you are using handwriting input a slide from right to left is backspace and a slide from left to right is space.(6)To update firmware Press #0000# to get your factory information now go to options to find new updates and install them(internet or GPRS connectivity is necessary).(7)To turn on/off the notification light go to menu>settings>phone>notification lights(this light is for unread message).(8)Press and hold the key for menu to get all open applications(Home and Menu will always be there).(9)Their is a key just below the front camera it is a shortcut key for music,web etc.(10)To tur off the auto rotate go to menu>settings>phone>sensor settings>turning control.(11)To have some handwriting training go to menu>settings>phone>sensor settings>touch input>handwriting training.(12)To calibrate your touch input go to menu>settings>phone>sensor settings>touch input>touch screen calibration.(13)Tap the active icons on the top of the screen and see what you get.(14)To have some shortcuts at your home screen menu>settings>phone>personal>Home screen.(15)To save your battery you can turn off touch screen vibration menu>settings>phone>personal>themes>general.nokia5800 tips and tricks(17) Shortcuts that you must try once(a) #06# to know your IMEI no.(b)#2820# to know the address of bluetooth device(c)#7370# for restore(soft resetting) yor nokia 5800 default settings(password 1234)via nokia 5800 tips and tricks Here are some nokia 5800 tips and tricks that you all must try to get best out of your nokia (1)To add 3D effect to your theme(a really cool... Διαβάστε περισσότερα »