UNIX

Linux / Unix Shell: Set Default Printer

by Vivek Gite on January 29, 2012 · 0 comments

How do I set default printer in my Bash shell under CentOS Linux or FreeBSD unix desktop operating systems?

{ 0 comments }

Can you tell me differences between the following sysvinit /sbin/service command:

service httpd restart

service httpd condrestart

service httpd reload

{ 0 comments }

Linux / UNIX: HowTo Empty Directory

by Vivek Gite on September 20, 2011 · 7 comments

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself?

{ 7 comments }

Linux / Unix: Tarball Delete ( remove ) File

by Vivek Gite on September 20, 2011 · 2 comments

How do I delete OR remove a single file from within a tar ball under Unix / Linux like operating systems?

{ 2 comments }

I recently installed NFS server v4 on my HP Linux server. However, I’m not able to mount it from Linux nfs4 client using the following command:

mount.nfs4 server2:/data /data

I’m getting the following error:

mount.nfs4: mounting server2:/data failed, reason given by server:
No such file or directory

How do I fix this problem?

{ 0 comments }

I‘m using an external display with a MacBook Pro. I do not want to use the external monitor as a mirrored display. I need to move the dock and the menu bar to external monitor. How do I setup the external monitor as main display?

{ 2 comments }

How do I check whether a directory is empty or not under Linux / UNIX using a TCSH / C shell script?

{ 0 comments }