Command Line interface (CLI)

learn more… | top users | synonyms (2)

0
votes
0answers
18 views

htop NI value? VPS always crash [on hold]

I have a problem with my vps. It always crash, run out of memory and I'm getting internal service error many times while refreshing or surfing static html pages. I'm the only user and have no visits. ...
-2
votes
0answers
28 views

Connecting to Windows Server 2012 console [duplicate]

How can I remotely connect to a Windows Server 2012 by console? I have RDP access to the server, but I find it not so good to use RDP just to use command line. I'm aware of Telnet, which doesn't ...
1
vote
1answer
23 views

Command line tool for fetching and analyzing SSL certificate

Following the heartbleed vulnerability in openSSL, all the SSH certificate on our servers were re-issued and re-installed. Since it is likely that we've missed something on a server (for example, ...
-2
votes
1answer
21 views

Command-line access to javascript in CentOS? [closed]

I'd like to get command-line access to a javascript runtime -- just something that I can type simple javascript statements at, and get results printed back at me. Something like php -a, or even a ...
0
votes
1answer
27 views

Change VNC password without losing the session

I have a VNC session to my server(linux), but now i need to change their password, however, i cannot lose that session. If I use this command: vncpasswd [passwd-file] Does anyone know if I will ...
2
votes
1answer
38 views

Windows 2008 Server R2 Command Prompt/Power Shell Slow Scrolling

I'm having an issue with various Windows 2008 Server R2 machines scrolling very slowly using the command line or Power Shell. For instance, if I type "dir", I see my contents being displayed 1 line at ...
0
votes
0answers
26 views

Is there a simple command to delete multiple ip sla policies?

I have a Cisco 819 router and on it there are a lot of ip sla policies. when I run the sh runcommand I get the following; ip sla auto discovery ip sla 2 http get http://www.facebook.com cache ...
0
votes
2answers
52 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
1answer
35 views

Cannot add address object using CLI on Sonicwall NSA2400 (5.9 firmware)

Based on an example from "SonicOS 5.9 Enterprise Command Line Interface Reference Guide" I have tried to add an address object using command below (which is not changed compare to prior firmware): ...
0
votes
0answers
12 views

MySQL/MariaDB CLI limits max password? [migrated]

I've got strange problem - my MariaDB instance CLI (Linux) does enforce limit on how long password can be. For example, setting password like this UPDATE mysql.user SET ...
1
vote
3answers
222 views

Generate CPU, memory, disk and network graphs from command-line [closed]

I would like to periodically (e.g. using cron) generate an image (e.g. png) containing graphs for CPU usage, memory usage, disk I/O load and network usage. I would like something not too ugly, so a ...
9
votes
2answers
613 views

linux command to prevent dos attack by using netstat and iptables

I want to DROP more than 200 requests per ip to prevent ddos attack. this is command that i used to detect requests count per ip : netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print ...
0
votes
1answer
27 views

Google Analytics real-time data into a 'top' like CLI

Does anyone know of a project or set of scripts that attempts to bring Google Analytics data to the command line? What I dream about is a "top" like application that lets me monitor Google Analytics ...
1
vote
1answer
57 views

How to read CPU usage statistics shown in “top” screen?

I'm pretty confused about understanding of CPU usage in a linux server... Please see the screenshot below: WHAT does Cpu(s): 9.1%us mean ACTUALLY? and WHAT does 74.7 at the ruby/deployer row ...
4
votes
2answers
182 views

How do I remove (un-apply) a named filter from a Procurve switch port using the CLI?

EDIT: Edited my examples to reflect that I was indeed attempting this with the switch in "configure" mode. Still no joy. EDIT: I've done some more searching on this issue. I just can't seem to see it ...
0
votes
1answer
37 views

Batch file output issue

I am trying to get a batch file to output some data to a CSV file. The command I have works perfectly in the command line but not when I copy it to a batch file. In the batch file, it just hangs and ...
1
vote
2answers
52 views

Openssl Custom Extension

I know how to create x509 certificates with the openssl command line. But now I want to create one with a custom extension. How can I do this with openssl command line?
1
vote
1answer
89 views

opening sar activity files error “Invalid system activity file”

Note: I opened this question on Stackoverflow first and realized that this is the right place for the question. Just stating that it is not a duplicate, already closed the question on SO. I am new ...
0
votes
1answer
21 views

mysql cli indentation issue

I've got some really weird output from an sql query: mysql> select concat('abcdef', license_code, 'c') from fulfillment_licenses_list limit 1; +-------------------------------------+ | ...
3
votes
1answer
58 views

Defrag options in Windows Server 2012

I am looking at the command line options for defrag.exe as well as the "ScheduledDefrag" task on Windows Server 2012, and I don't understand some of the arguments. In particular, when I view defrag ...
-2
votes
1answer
56 views

Desktop backups maintenance on a network share

I have configured Windows Backup and Restore function on Windows 7 Professional desktops to make daily backup on a network share placed on a Windows Server 2012. (BTW It's a pity that this utility ...
0
votes
2answers
33 views

How do you create separate config files for mod_php on apache and command line php?

I'm looking at the ubuntu sets up php for both apache (mod_php) and php cli. They have one configuration ini in /etc/php5/apache2/php.ini which contains settings for apache+php and another ...
0
votes
1answer
16 views

disabling extra message after changing to new directory

Whenever directory is changed, it is displaying the new directory name: # cd /home/ Directory: /home/ # cd ~ Directory: /root How to disable it? We are logging into csh. We already verified ...
2
votes
1answer
21 views

Tracking progress with xargs

I'm using xargs to execute a command on a set of input parameters something like this: cat <someinput> | xargs -n 1 -P 5 <somecmd> The input file is really long and take a long time to ...
0
votes
2answers
80 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
39 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 ...
0
votes
0answers
13 views

CLI modify-user with add-mysql returning “A db login with same name already exists”

I am trying to give an existing user access to a newly created database via virtualmin via CLI. This what I am using: virtualmin modify-user --domain mydomain.com --user existingusername --add-mysql ...
0
votes
1answer
33 views

Bash: delete old files except one

I am using the following command to delete old backup files: find backups/ -name "bak_*.tbz" -mmin +4800 -exec rm -vf {} \; The problem: When there are no new files, than all files are deleted. I ...
0
votes
3answers
97 views

deny local logon for a new user through command line windows server 2008

I am creating a local user account that I want to be able to connect over ftp, but not log on to the server, I believe the way to do this is to deny local logon but am unsure how to achieve this via ...
1
vote
1answer
21 views

command to add permissions to a folder for a local user in windows server 2008

as part of an installer I need to create a user with limited permissions to add the user I will use net user "<username>" <password> /add /fullname:"<username>" I now need to ...
-6
votes
1answer
123 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 ...
0
votes
1answer
72 views

php -i executed from command line and phpinfo executed from browser show different php parameters

My problem is that when I execute php -i it shows the php version as php 5.4 and the loaded config file as /usr/local/lib/php.ini. When I execute the script phpinfo.php from the command line it shows ...
0
votes
3answers
50 views

efficient, simple ‘lazy’ differential FTP upload tool? (i.e. for web dev workflows) [closed]

I am looking (over some time now and with some despair) for a tool, I guess most web developers need: A fast, ‘lazy’ aka ‘differential’ FTP upload tool. To quickly upload (without much server-side ...
0
votes
0answers
45 views

Output results of findstr at a Batch file so they can be read by PHP

I have this Batch file which looks for a string through a the files in the current folder: @echo off for /f %%i in ("*") do ( findstr /m /C:color "%%i" ) Now I would like to output the ...
0
votes
1answer
39 views

How to restrict a Linux program's permissions

I'm running a native linux program from PHP using shell_exec. Specifically, calling antiword to extract text from Microsoft Word files users uploaded. However, as I've got no way of assessing ...
1
vote
2answers
84 views

How to directly query authoritative DNS nameserver from command line, bypassing cached servers? [closed]

How can I directly query authoritative DNS nameserver from Linux and Mac OS X command line, bypassing cached servers? This is helpful when wanting to immediately verify newly-created DNS host names ...
2
votes
1answer
42 views

Command Line Script Issue

I've been working on a batchfile script for a few weeks now that should automate certain routine tasks I need to perform during my work. However, I've stumbled upon a problem which I haven't been able ...
1
vote
1answer
33 views

How do I pull up a command prompt on an Azure Website instance?

I am running an instance of the Ghost blogging platform on Azure. Setting it up was simple, I used a template from the gallery and it was set up in no time. FTP'ing into it to do work like template ...
0
votes
1answer
153 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 ...
1
vote
2answers
103 views

Why is DU causing high CPU usage?

On CentOS 6.5, du -sk /home and sh -c (du -sk \/home) 2>/dev/null run because a scheduled disk usage for /home, but du is causing 100% CPU usage. Plus, before it's even finished, another du gets ...
-2
votes
1answer
58 views

How to show the actual username instead of nobody in Linux?

I'm trying to find the memory usage for each account on my VPS. I use the "top" command to achieve that but the problem is that it is not showing the actual username for each account. I have four ...
0
votes
1answer
34 views

measure RDP time to login

I have a requirement to, for a short while, measure the login time to remote desktop services. I have found a fork of "rdesktop", called "rdesktop-nogui", which is without X bindings and is possible ...
2
votes
2answers
71 views

What's the best method to list all active NICs and IP addresses in a vSphere cluster?

I have ESXi 5.1 with many hosts in a cluster. I would like to generate a list of active NICs and thier IP addresses. Whats the easiest tool to generate such a list? *I am not looking for the Virtual ...
-3
votes
2answers
57 views

How to access a windows command line from a linux machine? [closed]

How to access the windows command line from an ubuntu machine. OS in question is Windows 7 and Ubuntu 12.04. Accessing here refers to remote access.
0
votes
2answers
122 views

Gnu parallel & pipe

I want to send each line of a file to another program's stdin, e.g. input.txt line1 line2 line3 I want to use the gnu parallel like this (i.e. pipe each line as stdin to the more command) cat ...
1
vote
2answers
53 views

Redirect to stdin instead of argument when using xargs [closed]

for exmaple, using the command cat foo.txt | xargs -I{} -n 1 -P 1 sh -c "echo {} | echo" The foo.txt contains two lines foo bar The above command print nothing.
1
vote
1answer
24 views

Get a tally of tapes in an IBM 3500 tape library

My organization uses an IBM 3584 Tape Library. I want to know how many tapes are currently loaded into it and how many slots are available in the library total (or at least remaining). IBM's website ...
4
votes
1answer
205 views

Is there a way to find out what printers a user has mapped remotely?

Remotely as in via command line. Not sure if there's a reg key or something similar I can peek at to see if a user has the correct printers mapped.
0
votes
0answers
28 views

fork/vfork are failing but return an out of bounds errno

I have a piece of software running on a 64 bit Cent 5.8 Final box, kernel 2.6.18. This piece of software using fork and vfork. Recently some failures occurred, and in my logging I can see that fork ...
0
votes
1answer
28 views

Azure Create VM With New Storage Account

I'm currently trying to automate the deployment of virtual clusters. Every one of the machines / cluster should get its own storage account to keep things faster and also make deletion easier. ...