≡ Menu

find command

Where Is The Xorg.conf File Located under Unix / Linux / BSD?

I want to find and edit my xorg.conf file for tweaking and configure it for new settings. The problem is that I'm unable to find the file. According to my research, xorg.conf should in /etc/X11 or /usr/X11R6/lib/X11/ directory. I found directories but not the file in directories. How do I find the xorg.conf under Unix or Linux like operating systems?
[click to continue…]

HowTo: Set Readonly File Permissions On Linux / Unix

How do I set readonly permission for all files stored in /var/www/html directory?
[click to continue…]

How To List Directories In Linux or Unix Recursively

I'm a new Linux and Unix-like system shell user. How can I get a recursive directory listing using command prompt on a Unix-like systems?
[click to continue…]

Linux / UNIX: HowTo Empty Directory

How do I empty a directory (delete all files) under Linux / Unix without deleting directory itself?
[click to continue…]

Linux / Unix: Bash Find Matching All Dot Files

A dot-file is generally any file whose name begins with a full stop. In Linux or Unix like operating system it is also called as hidden file. How do I list all dot files in my home directory?
[click to continue…]

TCSH / CSH / C Shell Check Whether a Directory is Empty or Not

How do I check whether a directory is empty or not under Linux / UNIX using a TCSH / C shell script?
[click to continue…]

Linux: Delete / Remove User Account

How do I remove a user's access from my server? How do I delete a user account under Linux operating systems?
[click to continue…]

Backtrack 5 KDE startx Failed To Load Error and Solution

I've downloaded Backtrack Linux version 5 KDE desktop 64 bit. To start a graphical interface I' typed startx command. But it failed with the following error message:

BackTrack Linux 5 64bits Vmware Workstation Installation

BackTrack Linux 5 64bits Vmware Workstation Installation

How do I fix this problem and install Backtrack Linux version 5 KDE desktop on my hard disk?
[click to continue…]

Unix / Linux: Remove Nonempty Directory Command

I am trying to remove a directory called /opt/source/httpd with the rm command. I am greeted with the following message:

rmdir: failed to remove `/opt/source/httpd': Directory not empty

How do I delete directory called /opt/source/httpd under Linux or Unix operating systems?
[click to continue…]

Linux / UNIX: mplayer Play mp3s From a Playlist File

I'm an extreme newbie to the Linux world, but any time I try to get play files according to a playlist file using mplayer command line it turns up this error:

$ mplayer playlist.m3u
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing playlist.m3u.
Cache fill: 0.00% (44 bytes)

Exiting... (End of file)

How do I fix this and play music without using GUI tools?
[click to continue…]