0
votes
1answer
78 views

email command not working in UNIX Linux

I tried with 2 email UNIX commands mail and mutt from my Red Hat Linux box. It's not sending any mails to the email id I specified. echo "My message" | mail -s subject "test email" <my valid ...
0
votes
3answers
91 views

What's the name of the file system of the operating system in UNIX\Linux?

Is that correct to assume that the operating system is ALWAYS placed in /usr in all kinds of UNIX and Linux? I'm writing a script that has to check the free space in the operating system's file ...
0
votes
1answer
18 views

RHEL 5.5 - Operating System Installation

Is it possible to customize versions of packages like "binutils , Glibc , libstd .." while installing the operating system??
0
votes
1answer
262 views

Do I have to restart my machine for ulimit - u to take affect?

So I have an external 3rd party application which runs on Java. The JVM is getting a load of OutOfMemeory errors and their support team suggested I raise the ulimit - u from he default 1024 to 4096 ...
0
votes
1answer
105 views

Prevent users from being able to pipe output to another users terminal?

So currently on this server if two people are logged into the same server, you can do something like: -bash-4.1$ cat /dev/urandom | write username It will print a bunch of junk to their terminal. I ...
1
vote
2answers
207 views

Discrepancy between df and du

I have a question pertaining the difference from 'df -h' and 'du -bs'. I have seen several questions here about it, but the issue was always that 'df -h' was reporting more used space than 'du -bs'. I ...
0
votes
1answer
253 views

hide pid when a process is launched in background

So I put this command vncconfig -iconic &, this causes vncconfig window to launch and terminal will display like [1] 13488. I want to hide this pid info. That is, when we put the command, only ...
1
vote
1answer
137 views

Get PS1 evaluated value, or shell prompt value

I am trying to find the command that would return me evaluated value of $PS1 variable or just shell prompt with current path. e.g. foo-user@bar-pc:~\bar I would like to avoid using something like, ...
2
votes
2answers
728 views

How can I route all my Internet usage through a remote server?

I have a remote Red Hat Linux server in Hong Kong with rackspace with root access. At home I have a regular ADSL2 100 Mbit/s connection using a FRITZ!Box. I would like to understand the ways of ...
0
votes
5answers
107 views

Linux find files

What could be a command to find all files owned by "abc" user, I guess that can be extended to finding all files with group 'def'. e.g. if I got result (ls -l) such as one shown below -rwxrw-r-- ...
1
vote
3answers
4k views

Unzip individual files from multiple zip files and extract those individual files to home directory

I would like to unzip individual files. These files have a .txt extension. These files also live within multiple zipped files. Here is the command I'm trying to use. unzip -jn ...
23
votes
3answers
43k views

How do I make sudo preserve my environment variables?

Using sudo 1.7.4p4 on Solaris 5.10 and sudo 1.6.7p5 on RHEL4 u6 I can't see how to preserve my environment variables, for instance $PYTHONPATH. I've added this line to sudoers, but it doesn't make any ...
1
vote
2answers
154 views

Capture directory & contents, Rotate for only the last three days

Our current backup approach requires us to capture a Tomcat directory, and all it's contents. The rationale is the backup makes redeployment easier in the event of a disaster. It was rotating based ...
9
votes
4answers
8k views

Why is the size of a directory always 4096 bytes in unix?

I am sure a directory file has much less information than 4096 bytes. I know the sector size is 4096 bytes. But normal files smaller than that do exist. Why does Unix reserve 4096 bytes for each ...
1
vote
2answers
119 views

Problems installing yum

I did make install on the yum package downloaded from here. After the installation was done, if I do yum I am getting yum: Command not found. What should I do?
2
votes
2answers
155 views

How to add a dictionary in firefox?

Whenever I am typing anything in my firefox, every word is underlined red (firefox cannot find it in its dictionary). How to add the default dictionary to firefox? [using Firefox 3.5.2 on Red Hat] ...
0
votes
1answer
388 views

Whats wrong with my xlock?

When I type xlock and press return key, I am getting the following error: Unknown mode: xlock: bad command line option "swarm" What should I do? I just need the basic xlock screen locking ...