Tagged Questions

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

learn more… | top users | synonyms (2)

0
votes
1answer
14 views

redHat distro need MySQL module for php5

i have tried this sudo yum install php5-mysql but it gives me an error No package php5-mysql available any suggestions how to get MySQL module for php5? i dont need the entire server because using ...
1
vote
1answer
19 views

mysql command line show statements a sql script executes?

I'm a long time postgres user, but am now looking after maintenance for mysql databases. One thing that I'm used to from postgres, is when you run a sql script it will output on the command line what ...
0
votes
1answer
36 views

Whats the output format of “df -ki” in AIX?

I just wanna know the output format (the order of columns) when running the command df -ki in an AIX system. I dont have access to an AIX system , and since it doesnt run on x86 machines , i cant try ...
2
votes
3answers
171 views

Is It a Bad Idea to Install the OS GUI on a Server That Will Host Asterisk?

We have a server onto which we plan to install CentOS 6.2. The server will host Asterisk for our office, but is not a webserver. If we install the minimal installation for CentOS - that is, no GUI ...
2
votes
1answer
31 views

Cisco ASA Command length

Whenever I write some command in ASA , it hides the full command and show the bit of command . What is the way to increase the length of Commands I write in ASA, so it doesn't hide the command written ...
1
vote
2answers
43 views

Attempting to mount drive in Ubuntu Server 11.10

I have a machine running Ubuntu Server 11.10. There are two internal SATA drives and I had previously had them both mounted and accessible. The machine has recently been moved and after starting it up ...
0
votes
1answer
29 views

pgrep/pidof usage for complex process names?

I am trying to use pidof or pgrep to be able to send a HUP to a process in my system. The problem is that I only want to kill the process with a precise parameter. This is the output of 'ps awx' ...
1
vote
1answer
50 views

Command: move all files inside a directory to another directory (including hidden files)?

I tried to move all files inside a directory to another directory like this: $ mv /directory_one/* /directory However, the hidden files (such as .htaccess) in /directory_one won't be moved. What ...
0
votes
0answers
15 views

How do I install SOX on UBuntu 11.0 with all format supported packages? [migrated]

I tried to install SOX ( Swiss Army knife of sound processing programs ) on Ubuntu 11.10. At first, I tried with apt-get install sox, it installed successfully but it couldn't convert wav to mp3. Then ...
0
votes
5answers
63 views

Determining the version of a packaged process on linux

It's easy to know which version of a package is installed on a linux distro: package-manager info <packagename> i.e.: yum info ntp However, is there a 'linux convention' sort of way to ...
1
vote
2answers
55 views

Linux command to remove directories with white spaces

I usually use the command line bellow to remove directories on file system. But, for the 1st time find is returning names with white spaces on it, and rm doesn't recognize it. find . -name ...
2
votes
2answers
45 views

Add a new scheduled task from command line with “wake the computer to run this task” on

I'm trying to add a scheduled task to start every day at a fixed hour even if the computer is in sleep mode. In the Windows Scheduled Tasks Manager UI, there is a check-box labeled "Wake the computer ...
2
votes
2answers
69 views

tar Exiting with failure…?

i'm untaring with this command tar -pxvzf filename.tar.gz an everything seems to be going fine but, it unexpectedly exits with the error below. Is there a reason why I'm receive this error and / or ...
1
vote
5answers
62 views

Is there an option to open file with line number from command line in 'vi'?

I've seen so many examples/usages about how to display/hide line numbers in vi edit mode. To turn on line numbers: Type :set number in edit mode To turn off line numbers: Type :set nonumber in edit ...
1
vote
3answers
69 views

10 gig MySql database import stalls and doesn't finish

I am trying to import a 10 gig database to my local installation of mysql. I'm using Ubuntu 11.10. I am using the command line to do it. mysql -u root -p database < database.backup.sql I left ...
0
votes
1answer
24 views

What command enables non-Arista SFP+ in the DCS-7124s?

What command enables non-Arista SFP+ in the DCS-7124s? And how do you enter it?
1
vote
1answer
39 views

Windows Command-Line Utilities Started Prompting for Password

Recently my computer started prompting for the password of my domain account (that I am logged on as) when running command-line tools such as tasklist or taskkill on remote domain computers. On other ...
0
votes
1answer
24 views

Cronjob in cPanel

I'd like to schedule a cronjob on my server to backup the entire public_html directory daily. I am logged into cPanel and I am on the Cron Job page where I have it set to run this command everyday at ...
0
votes
2answers
72 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 ...
1
vote
1answer
40 views

How can I add myself to apache group?

I'm running my CentOS server on my Xserver and what happen is that when I want to upgrade my Wordpress escpecially for now to Wordpress 3.3.2 the problem is that I got Warning: ...
0
votes
2answers
58 views

Unix wrapper to make any binary accept stdin/stdout redirection

This is a common situation: you want to include command 'foo' as part of a pipeline, but unfortunately command 'foo' only accepts actual filenames for I/O and does not read/write from stdin/stdout. I ...
2
votes
4answers
68 views

What happens when I kill a command with ctrl+c?

Specifically, I ran a rm -R /my/dir by mistake on a unix box (ubuntu 10.04). When I realized the horror within a few seconds I quickly killed it with the Ctrl+C command. It now seems I haven't lost ...
-5
votes
1answer
40 views

Command line: View network duration

I can see network duration in lan status snippet. How can I see it in command line?
3
votes
2answers
61 views

Equivalent of Cisco's logging synchronous CLI command on Dell PowerConnect switch

When using the CLI of cisco devices, there is the "logging syncronous" command that keeps the log messages from interrupting the command prompt. Do Dell PowerConnect switches have a similar command ...
0
votes
1answer
141 views

Query a Windows DHCP server : find MAC from hostname

From my computer, I want to query my DHCP server to find a specific mac adress. I want to enter the hostname to search, and getting back the Mac address. Something like : netsh dhcp server scope ...
1
vote
3answers
43 views

Some $_SERVER parameters missing when accessing PHP script via Cron

I have a script that I need to run with PHP via cron. The original author of the script made a lot of user of certain $_SERVER parameters (like REQUEST_URI). But it appears that certain variables ...
0
votes
1answer
61 views

ec2 LAMP REDhat distro change mysql password error

i am on ec2 plain linux and wish to change my mySQL password ive tried: sudo mysqladmin -u root -p '***old***' password '***new****' then it prompts me to enter password then i enter ***old*** ...
4
votes
4answers
73 views

How to rename libc.a back

I am working on AIX 6.1 and inadvertently renamed /usr/lib/libc.a to usr/lib/libc.a_ Just as I renamed I realized my stupid mistake. Almost all of the commands mv, cp, ftp etc ( except cd ) have ...
1
vote
2answers
82 views

Debian Squeeze, bash hangs after successful login

My problem seems to be identical to the question ssh hangs on "Last login" line , but the questions author did not post a solution. So basically: - I can login - I can see the successful ...
1
vote
1answer
36 views

Recursively change the name of a file and the content inside the file if matches a keyword

I can use sed to do recursively find and replace a string in a bunch of files. Like so: find -name "*.py" -not \( -name .svn -prune \) -type f -print0 | xargs -0 sed -i 's/cat/dog/g' However is ...
1
vote
3answers
73 views

CLI-Based monitoring tool for KVM

I am developing a scheduler for running VMs on KVM. The scheduling has over-commitment of resources like memory and CPU. For this, I need a CLI-based monitoring tool that keeps me giving information ...
2
votes
1answer
159 views

CPU Usage while running command in command line

I am looking for a way to output CPU usage percentage via the command line. I ran across this: wmic cpu get loadpercentage which gives me the desired percentage output however I want to test the CPU ...
1
vote
4answers
107 views

Concatenate variable in string bash

I want to kill a process in specified port (variable) export PORT=3030 netstat -ntlp | awk '$4~/:*${PORT}$/{gsub(/\/.*/,"",$NF);cmd="kill -9 "$NF;system(cmd)}' but variable PORT doesn't get in the ...
0
votes
3answers
87 views

Send file trough FTP using command line without interactive mode

I want to automate sending of a file through FTP using command line (on Linux). By this I mean that I want to send a file straight from the command line, without any interactive mode. I want to pass ...
0
votes
2answers
230 views

Can I send CTRL-BREAK and/or CTRL-C to a running process in Windows?

I have a Windows Console application that will be running for an extended period of time. This has been developed in house and tests have shown that over time memory usage grows and other bad things ...
3
votes
2answers
59 views

Programmatic, script-based, or command line method to change starting program for user on Windows Server 2000/2003?

I have written an app that we want to distribute to a large number of customers to be used as the shell program when they log onto their server with a particular admin account. I have figured out how ...
0
votes
2answers
133 views

Command-Line folder structure on Windows

I need to create a folder structure via command line, structure is as follows : username > folder1 > folder2 > folder3 (and there are subdirectories within these folders as well) This is a windows ...
1
vote
2answers
112 views

How to untar a single file from an archive with randomly generated directory names?

I'm trying write a script that will download a tarball from github and extract a single file from it. However the top level directory inside the tarball has some random characters in it, which I ...
2
votes
1answer
87 views

Alternative to “sort | uniq -c | sort -n”

I've been doing | sort | uniq -c | sort -n for years! Just wondering if somewhere buried in the command stack that people have been updating for years if there is a simple alternative.
2
votes
1answer
59 views

“net session” listing GUIDs for computer names. Won't accept its own GUIDs

When I run "net session" or "net session /list", I get GUIDs for computer names: C:\Users\Administrator>net session Computer User name Client Type Opens Idle time ...
1
vote
2answers
87 views

How can I create a scheduled task from the command line that only runs on demand?

I"m trying to duplicate the steps in this article for creating a shortcut that launches a program without a UAC prompt. I'd like to create the task from the command line, however. Here's the ...
8
votes
1answer
317 views

PHP on command line displays “Out of Memory”, no file name, line number or memory value

I originally posted this at http://stackoverflow.com/questions/9665189/php-on-command-line-displays-out-of-memory but was advised to post here instead. This is not the normal fatal error when you run ...
0
votes
2answers
563 views

How to install VMWare ESXi CLI on CentOS 6.0?

I'm trying to install VMware-vSphere-CLI-5.0.0-422456.x86_64 onto CentOS 6.0 64bit, but the installer complains: CPAN not able to install following Perl modules on the system. These must be ...
1
vote
3answers
93 views

Figuring out what's filling up my hard disks [closed]

Possible Duplicate: What are good tools to show disk usage (for Windows)? In brief, I have a system with several hard disks, and although we install everything on the extra (internal) ...
3
votes
2answers
85 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? Thanks
1
vote
2answers
90 views

Tool to monitor bandwidth utilization per traffic (tc) class on linux

Some time in the past, i came across a siple tool that showed live in a 1sec interval, in human readable format, the bandwidth utilization seperated per tc class on your linux server. Unfortunately, i ...
0
votes
1answer
44 views

mysqldump asking for password even after telling it the password in the command line option

I am using the following command: mysqldump -alv -h 123.123.123.123 --password=P@ssw0rd --user=UsernameHere --add-drop-table -p DatabaseSchemaName > dump.sql Then it asks me to Enter Password. ...
0
votes
1answer
34 views

Replace specific row in MySQL table

Initially, this is what we can see when I run SELECT * FROM block_custom;: +-----+------------------+--------+-----------+ | bid | body | info | format | ...
2
votes
2answers
134 views

How to schedule task to run every 10 minutes, from 8:00 to 15:00 on multiple days of week (with schtask.exe)?

How to schedule a task to run every 10 minutes, from 8:00 to 15:00 on multiple days of week, i.e. on Mon,Tue,Wed? The task I described can be defined with the GUI of Task Scheduler by using the ...
3
votes
2answers
65 views

Insert one data to MySQL table without login

MySQL details: MySQL username: root MySQL password: z To run MySQL query without login, the command is: mysql -u root -pz -e "mysql-query-here" So, if I want to create database with name db1, it ...

1 2 3 4 5 17