128
votes
9answers
13k views

I accidentally typed password into bash command line

I accidentally typed my password into bash command line, mistaking the Last login: ... line for Wrong password (I was in a hurry). What do I do to cover my trace? What I did was editing .bash_history ...
0
votes
1answer
77 views

Find and delete line in .htaccess file

I am trying to figure out how could possible a command do search and delete line from .htaccess file . the following line is the line i want to search and delete RedirectMatch ...
0
votes
1answer
186 views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
3
votes
2answers
143 views

Get the available space of Dropbox using Linux command line

I'm using CentOS. Is there a way to get the unused space in my Dropbox account using the command line?
0
votes
2answers
1k views

Diagnose internet connection issues using command line

I'm having multiple issues trying to get CentOS to download anything. I can't get yum to work because there is a time out when trying to access a file. Anyways, is there a way to trace why a command ...
0
votes
1answer
377 views

How can I upgrade ffmpeg in CentOS 6.x

At first, I've downloaded ffmpeg 0.6.5. and it works. But when I'm trying to use '-vf' option, Terminal said there's no such command. So I asked this on Super User and someone said that the cause is ...
1
vote
1answer
303 views

How to edit multiple cpanel user cron jobs at once?

I'm using cat /var/spool/cron/* to view all cron jobs created by all cpanel users. Is it possible to edit its output just like editing via nano and hit save?
1
vote
1answer
653 views

“command not found” after editing /etc/profile

I followed this tutorial to add a JAVA variable for all users. I then opened the editor that my hosting service supplies and added the last 2 lines. Centos 5.9 server. # /etc/profile # System wide ...
2
votes
2answers
77 views

How to find rpm binary of a given process?

Here is the problem: I'm trying to find what cron software is running on my machine, however question applies to any generic process. One way to do it is: Find the process ps aux |grep cron Find ...
-4
votes
1answer
119 views

How to create a single file archive of a huge directory of around 18 gb

I have a directory containing around 1800 files in a directory , the directory size is now around 18gb. I need to create a single archive of the directory in order to download the whole contents. I ...
0
votes
1answer
53 views

Unable to view users and groups

I am using Centos5 running on a VMWare but whenever I choose to open the User Manager menu from System->Administration, an error message always displays The user database cannot be read. This ...
0
votes
2answers
668 views

blocking port 80 via iptables

I'm having problems with iptables. I am trying to block port 80 from the outside, basically plan is we just need to Tunnel via SSH then we can get on the GUI etc. on a server I have this in my rule: ...
2
votes
2answers
2k views

How to find which package certain command belongs to on CentOS?

For example I can easily find locate command belongs to mlocate.i386 package. yum search locate mlocate.i386 : An utility for finding files by name [mirror@home /]$ rpm -qa | grep locate ...
1
vote
1answer
673 views

Find a file with certain filename and size in linux?

Is it possible to search for files with a certain filename and size in linux?
2
votes
2answers
416 views

PuTTY stuck when using du command

I'm a command line noob but I think this one's stuck. I never get passed etc. Any ideas?
2
votes
2answers
2k views

Redirect stdout to a file when process is run in background

How can I redirect the stdout of a program to a file when it's run in the background? I have a program that generates output every second. When I run it normally and redirect to a file, the output ...
1
vote
3answers
760 views

How to “fresh-clean” OS on the server?

Is there any fast and reliable way to remove everything not related to OS from the server? In removing everything I mean: Completely delete all packages and it's dependencies Completely delete all ...
0
votes
2answers
5k views

Installing 7zip in CentOS - succeeds; but can't use it

I am trying to install 7zip to CentOS yum install p7zip installed it. And now running this returns Package p7zip-9.20.1-2.el5.x86_64 already installed and latest version But [root@root ...
0
votes
1answer
730 views

Linux: Convert CENTOS 5.x to Scientific Linux 6 (SL)

Scientific Linux 6.0 aims to be 100% based on Red Hat Enterprise Linux RHEL6. Is there any possible way to convert CENTOS 5.x to Scientific Linux 6 by console ? i'm pretty sure, that centos 6 will ...
3
votes
1answer
946 views

centos Screen - command detached process

Screen supports externally controlling a detached screen with the -X parameter, for example: screen # -X -p0 "quit" That will terminate the screen where # is the screen PID. However what I want to ...
1
vote
1answer
2k views

symlink and sudo executable

If I have the below sudoers entry usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file When I log-on as usera and ...
0
votes
5answers
1k views

CentOS up arrow previous command

On a FreeBSD machine that I've used, the up arrow key brings up the previous command BASED on the letters already typed. However on a CentOS machine that I'm using, the up arrow key simply bring up ...