July 2007

Linux / UNIX: Device files

by Vivek Gite on July 31, 2007 · 6 comments

Q. Can you explain me what is device files and how do I access or see device files? Why UNIX / Linux has device files? A. Under Linux and UNIX each and every hardware device treated as a file. A device file allows to accesses hardware devices so that end users do not need to [...]

{ 6 comments }

Q. How do I list or find the smallest directories or files in the current directory under Linux or UNIX like operating system? A. There is no direct command exists for this task. However by using shell pipes and combination of other commands one can produced the desired result. Task: Display list of smallest files [...]

{ 0 comments }

Q. How do I list or display the permission of a file using ssh? I don’t have GUI installed on a remote Linux computer. A.You need to use ls command with -l option. File access permissions are displayed in the first column of the output, after the character for file type. ls command List information [...]

{ 0 comments }

Shell script put multiple line comment

by Vivek Gite on July 30, 2007 · 2 comments

Q. I’d like to use multiline comments under shell script. Under C / C++ I can use format /* my c code comment # 2 blah */ How do I put multi line comment under a shell script? A. By default shell script can be commented out prefixing # character for example: # my comment [...]

{ 2 comments }

Q. I’ve just installed CentOS Linux server and started to use vi text editor to make changes to config files. How do I perform search and replace operation using vi / vim text editor? A. vi (vim) is not difficult to learn, the vi editor is well known and used for both writing code and [...]

{ 14 comments }

Howto: Update firefox on Linux

by Vivek Gite on July 30, 2007 · 23 comments

Q. My Firefox version is 2.0.0.0 and I’d like to update the same to latest version. How do I upgrade my Firefox on Linux? A. You can easily upgrade firefox on Linux. Please note that installing Firefox 2 will overwrite your existing installation of Firefox. You won’t lose any of your bookmarks or browsing history, [...]

{ 23 comments }

Q. I’m using Ubuntu Linux and I’d like to create or modify keyboard shortcuts in Gnome desktop system? How do I do it? A. You need to use GConf-Editor or gnome keyboard shortcut tool. GConf-Editor is a tool used for editing the GConf configuration database. It might be useful when the proper configuration utility for [...]

{ 14 comments }