0
votes
2answers
68 views

How do I see if user connected to mysql over ssh tunnel?

I imagined command last, would also give me mysql over ssh tunnels list. But I was wrong. Is there a place where this tunnels are logged? Ubuntu server 12.04.
0
votes
2answers
100 views

Graceful way to rsync millions of files between two local folders

I want to rsync a folder with millions of files from a local directory to another, on a daily basis. The files themselves change very rarely. I want to reduce the impact on the running server, e.g. ...
-2
votes
3answers
44 views

Put another hdd in ubuntu server 10 [closed]

I am using Ubuntu server 10 for LAMP and hosting sites. I installed the server without a GUI, and what I want to do is to add a second HDD for some backup. I attached the HDD but the problem is I ...
-6
votes
1answer
175 views

How to undo rm -rf? [closed]

How we can undo rm -rf command ? For example, I have Application folder. And I have remove it by rm -rf Application But it was my mistake and want to recovery or want that Application Folder. But ...
-1
votes
2answers
58 views

Better way to exec at a specific folder

It is possible to exec at the specific folder, rather than I need to use two commands separately? e.g. cd /opt/folderA exec .... cd /opt/folderB exec ....
-1
votes
1answer
275 views

Ubuntu PPTP VPN to Microsoft Server Command Line ONLY

I try to setup a VPN Connection from a Ubuntu 12.04 LTS to Microsoft VPN Server (Ubuntu is the Client in this Case), but I only get this error message: .. connection failed! Check the log messages ...
-1
votes
1answer
20 views

Ubuntu server trouble with command-line prompts

I bought VPS with ubuntu 12.04 server minimal. When I logged in, there is very simple command line by default. How install full-function command-line with prompt and etc?
-1
votes
2answers
235 views

How do I copy files between harddrives on Ubuntu CLI? [closed]

I have a dedicated server with a 120gb main ssd. The server happens to come with a couple of 3000GB hard drives. I'd like to use them to back up my main drive. Preferably, I'd like one as an exact ...
3
votes
2answers
147 views

Rename a directory containing many files

I made a mistake in a rsync and all the files are copied long with its full path. All the files that I copied are at /var/www/photos/2012/1007/1007 Attempt 1 Now I would like to fix the paths, by ...
0
votes
1answer
518 views

Private key is not valid, when trying to access as-create-launch-config

I installed my ec2 tools in my command line. I can use it for creating a new instance and other similar operations. Now I wish to play with the auto_scaling tool. I installed it and edited my .bashrc ...
3
votes
3answers
1k views

How to get a list of security updates on the command line in Debian/Ubuntu

In the GUI tool you can get a list packages with security updates. Can this be done on the command line in Debian or Ubuntu? Normally I might use "apt-get upgrade" which would show me what is being ...
1
vote
1answer
664 views

Where does apt-get or aptitude update download package lists to?

I am having trouble with aptitude update and apt-get update not downloading a certain list file (specifically http://gb.archive.ubuntu.com precise/universe Sources [5,019 kB]). I can download it ...
2
votes
1answer
911 views

Zipping folder with absolute path without keeping tree of folders

I am attempting to use the zip -r command to zip a folder which includes two files. I need to pass the absolute path of the folder with two files (/path/to/my/files/), which is causing all of the ...
0
votes
2answers
3k views

How to stop Solr service from command line

I used to start Solr with this command: java -jar start.jar and all I had to do to stop it was press Control + C But then I started it this way: java -jar start.jar & Which starts it as a ...
3
votes
2answers
547 views

sudo -i but keep current working directory

When use sudo -i I will simulate login as root, and current working directory will be jumped to /root. Is it possible not to jump and keep the working directory unchanged?
13
votes
2answers
2k views

What is the difference between sudo -i and sudo su -

What is the difference between commands sudo -i and sudo su -? Are they the same?
-1
votes
1answer
67 views

/data/tmp on database server? [closed]

I am on a Linux ubuntu machine with MySQL installed. My teacher gave out an assignment which mentioned "copy cars.dat to /data/tmp on the MySQL database server" without any explanations, I do not ...
3
votes
4answers
2k views

Can I change a user password in Linux from the command line with no interactivity?

I have a specific use case where I would really like to be able to change a user's password with a single command with no interactivity. This is being done in a safe fashion (over SSH, and on a system ...
0
votes
3answers
1k views

“chown mysql:mysql /data/tmp” command

I am on a Linux ubuntu machine with MySQL installed. If there is a MySQL installation on a Ubuntu machine, I saw some people doing the following thing: sudo chown mysql:mysql /data/tmp I get ...
1
vote
3answers
164 views

Security issues of Running command with PHP script

I want to run a command line program with PHP script. What are the security issues of doing this on VPS? I've heard a lot that this is not secure. But want to know how exactly? Also, what will be the ...
2
votes
2answers
379 views

How can I make newly created directories inside a directory with the setgid bit also have the setgid bit?

I give a directory the setgid bit. Then inside that directory I create another directory, and I want it to also have the setgid bit. I have tried something like umask 6002, but it says "octal number ...
1
vote
1answer
215 views

Cron Error on Ubuntu (Command Not Found)

Trying to add this to the crontab (Ubuntu): 0 2 * * * /usr/local/sbin/aws dsnap | grep vol-193vja9 | sort -r -k 5 | sed 1,5d | awk '{print "Deleting snapshot: " $2 " Dated:" $8}; ...
0
votes
1answer
745 views

Change VPS Default IP Address

I am using Ubuntu 10.10 I want to change my VPS's default IP. My VPS comes with two IPs, but it always show the first IP 184.22.111.120 when I check with this page: http://www.lagado.com/proxy-test ...
0
votes
2answers
692 views

Trying to connect to mysql via php command line through XAMPP (ubuntu/cakephp)

I am trying to run the cake shell through xampp and I am running into some issues. What works I can connect PHP to Mysql while running through apache (in web browser) I can run the PHP CLI in bash ...
7
votes
3answers
28k views

How to check my PHP and MySQL version on Ubuntu VPS?

HI I am going to install MyBB but I am not sure whether I have installed the correct version of PHP and MySQL. PHP version 5.1.0 or above with XML Extension installed MySQL version 4.0 or ...
1
vote
1answer
132 views

EC2 API Tools formatting in Ubuntu terminal

The output of ec2 cli tools on my mac is nice and formatted like so: RESERVATION r-xxxx xxxx cl-xx INSTANCE i-xxxx ami-xxx TAG instance i-xxx ...
1
vote
1answer
2k views

Pass password to adduser command

Just wondering if it's possible to pass the password I want to use to the adduser command in ubuntu, so that it can be automated. I want to do something like this echo "password" | adduser test ...
3
votes
3answers
654 views

Linux comprehensive command line history

I have Ubuntu server. On the server several users are allowed to operate. They use ssh. I need to have command line history for all of them in one place showing the time, the user and the command. ...
-1
votes
2answers
426 views

svn list password ?

please how i can give "svn list" password as argumant ... because when i execute this command it require password .... i want it without password
0
votes
2answers
6k views

How to write shell scripts in Sun Solaris?

I am new to Unix shell scripting. So can anybody help me? How to write shell scripts in Sun Solaris? How to run/execute the script? Please post in detail.
0
votes
2answers
187 views

How i can creat user with privilege in ubuntu 10.04 sever

How can I create users with privilege in ubuntu 10.04 server by using CLI
3
votes
4answers
6k views

How i can do SVN Repositories Backup step by step

How i can do SVN Repositories Backup step by step.... i want to backup the Repositories itself .... i don't want to backup it as folder ....
0
votes
2answers
1k views

Strange problem with crontab and echo

$ echo -e "test1\ntest2" > logfile $ echo -e "test1\ntest2" >> logfile $ cat logfile test1 test2 test1 test2 $ rm logfile $ crontab -e * * * * * echo -e "test1\ntest2" >> logfile $ ...
1
vote
1answer
2k views

Autologin on Ubuntu Server

I have a machine running Ubuntu Server. It has only a command-line interface. How can I make the system login with a specific user automatically (I don't want to type the username/password). I know ...
7
votes
4answers
20k views

ubuntu set system proxy from command line

Using server version of 10.4 beta 2 Need to to set the proxy that the system needs to use Thanks
1
vote
3answers
499 views

dpkg error code 1

I am unable to add/remove any packages in ubuntu karmic I keep getting the following Errors were encountered while processing: crossplatfromui E: Sub-process /usr/bin/dpkg returned an error code ...
3
votes
3answers
4k views

How to apply CHMOD command to any file with a specific name recursively in Linux?

I need to know how to apply a CHMOD command to only files that have a specific name recursively? chmod 755 -R filename Something like above but it should apply to any filename that exists in any ...
3
votes
3answers
1k views

How do I install 'repeat' on Ubuntu?

This StackOverflow question mentions a unix command called 'repeat'. It sounds like it does exactly what I want. From reading the question and answers, I think the user is on Mac OSX. However that ...
1
vote
3answers
683 views

Looking for a command line ftp client that can upload entier folder

I need something like Filezilla that does the same thing in a console. The default ftp client on Ubuntu can only upload files, mput doesn't seem to work on folders. I have many folders and sub folders ...
0
votes
1answer
306 views

benchmarking Ubuntu gui versus command line

Has anybody done benchmarks on Ubuntu with the GUI installed versus purely command line? I'm considering adding the GUI to my server, but I am wary of it slowing the system down.
1
vote
1answer
294 views

install Windows virtual machine on Ubuntu

How to install a Windows XP or Windows Server 2003 virtual machine on a remote Ubuntu server by command line? Also, please advise what virtualization software is best for this kind of job?
2
votes
3answers
714 views

Minimal GIMP install to work from command line

Ubuntu Jaunty (9.04) Server I need to do some server-side image scripting that apparently only GIMP is able to do. I'd hate to install X Window and GTK only for that. Is there a way to install GIMP ...
11
votes
16answers
30k views

Shell Command for Getting IP Address?

Is there a bash command to find the IP address for an Ubuntu box? I need to find the IP address so I can ssh into the machine later.
8
votes
5answers
3k views

How do I turn off the beep in the terminal in Linux?

I've recently started using a new desktop PC with Ubuntu Linux installed. However the terminal beeps annoyingly. i.e. If I'm at the start of the line and I press Backspace, it'll beep to tell me that ...
1
vote
3answers
518 views

Log-file inspection and management on a LAMP stack

I'm engaged in a handful web-development projects running on a LAMP stack. My present tool-set for inspecting and bugfixing is: the softwares built-in log-viewer and the like, and running "sudo tail ...
6
votes
7answers
10k views

how to merge two ext3 partitions on ubuntu from command line?

I have a partition /dev/sdb1 and a partition /dev/sdb2 They are both in /etc/fstab with proper UUIDs and mounted as /opt and /home I'd like to merge them without losing any files Can this be done ...