How to shutdown and reboot without sudo password?

September 25th, 2007 mysurface

If you are gnome user, you probably enjoy shutdown with just a click on the dialog. In order to shutdown from command line, you are requested to be either root or using sudo, such as sudo shutdown -h now For more detail examples of shutdown, continue to read here. With sudo, you need to type […]

Posted in Admin, chmod, shutdown, sudo | Hits: 233335 | 25 Comments »

writting executable script

October 8th, 2006 mysurface

Shell script (sh), Bash script (bash), Python and perl are all scripting language. By default, to run a scripting file, for example Python script, you need to do this: python Another example for shell script: sh But we make is executable and can execute by running directly like this ./ If you place […]

Posted in Bash, chmod, Developer, file, python, sh, which | Hits: 113758 | 23 Comments »

change file access permission

October 2nd, 2006 mysurface

chmod (change mode) is another very common and useful admin command, we usually use to change a file mode to executable when we are writting various script such as bash, python, perl, etc. To change a file to executable, chmod +x By default, it change mode to all. The file mode is categories into […]

Posted in Admin, chmod | Hits: 38306 | 1 Comment »

video converter – ffmpeg

September 25th, 2006 mysurface

I get to know this command because my mplayer having problem playing flv downloaded from youtube. Therefore I google it and found that it is a command line can actually convert it into mpg. To convert flv, let say myvideo.flv to myvideo.mpg, you can do this: ffmpeg -i myvideo.flv -ar 22050 -b 500 -s 320×240 […]

Posted in chmod, ffmpeg, Misc | Hits: 73020 | 18 Comments »