Command Line interface (CLI)

learn more… | top users | synonyms (2)

-1
votes
0answers
27 views

Using RDC(Remote Desktop Connection Manager) with command line [on hold]

I want to know if there is any command line interface for RDC (Remote Desktop Connection Manager). I want to write a script that should add a server into the RDC.
3
votes
4answers
3k views

How to find the browser versions from command-line in Linux & Windows?

In ubuntu when I just open a terminal and say "firefox -v" or "konqurer -v" it prints all the version information. But, I am not able to find how to go about this for Chromium on Linux & ...
4
votes
4answers
14k views

Is there a built-in command-line tool under Windows like wget/curl?

I come from a Linux/Unix background and I have been wondering if Windows has a binary that can download files from the console. I would like to automate a certain process and one of my requirements ...
1
vote
2answers
451 views

How to change php binary location in OSX command line

I'm trying to update where the command line gets the location of the php binary: webserver: /usr/bin cli: /opt/local/bin/php Where can I edit so when I do 'which php' it shows me /usr/bin/php
5
votes
3answers
10k views

nslookup for SRV records (or any non-A records) in non-interactive mode

Is the anyway to run nslookup (Centos 5 or Windows) such that it will look up record types other than A, without having to go to interactive mode and using set type=? For example, I'd like a command ...
143
votes
39answers
41k views

What useful things can one add to one's .bashrc? [closed]

Is there anything that you can't live without and will make my life SO much easier? Here are some that I use ('diskspace' & 'folders' are particularly handy). # some more ls aliases alias ll='ls ...
11
votes
5answers
17k views

How can I check the build status of a Jenkins build from the command line?

In trying to make doing the right thing easy, I'm looking for and making command line tools for our developers. I'm hoping to find a way that I can check the jenkins build status without switching to ...
0
votes
2answers
16 views

How to check disk usage of directories in a particular partition?

If I use "df /dev/sda1 -h", it only shows the whole usage info like used and avail. But I want to see the usage of each directory. However, if I do "du -h --max-depth=1", it shows all the directories ...
0
votes
0answers
45 views

How to print a range of IP addresses with Linux seq command [migrated]

How can I print a range of ip addresses on linux command line using the "seq" command? For eg: I need seq to print a range of ip from 10.0.0.1 to 10.0.0.23 . Seems like the period in between the ...
0
votes
4answers
18k views

Command Line Winrar & Batch Scripts

I've written a wee batch script to backup some stuff on my desktop and dump it over the network to a share... The only thing that's bugging me is the verbosity of rar.exe while it's doing the ...
4
votes
4answers
129 views

How can I view information for domain groups from the command line with just core Windows utilities?

I'm familiar with using the NET commands to get information for local users and groups in most scenarios. However, I'm running into a problem using it to get information for domain groups with long ...
0
votes
1answer
822 views

How to change the proxy settings for the Network Service account from the command prompt?

Currently, I am only aware of the following command: C:\>bitsadmin /util /SetIEProxy NetworkService MANUAL_PROXY 1 92.168.0.200:8080 NULL But, it has the following defects: It is deprecated It ...
0
votes
0answers
6 views

How do I get Spark to load multiple chat rooms from the command line?

We are using an XMPP chat client called Spark, connected to an Openfire server. I have a task to try and have our Spark users automatically load up a chat room, depending on what their group ...
0
votes
1answer
85 views

Change user password on other domain command line

I'd like to change user's password using cmd.exe on domain account. I tried net user user_name * /domain but it doesn't work, because my user is on another domain. How can I specify, to which ...
0
votes
2answers
1k views

How to stop freeswitch by the command line?

freeswitch has it's own CLI and it is possible to shut it down with shutdown command issued within this CLI. But is it possible to shut it down bu separate command, for example, by shell script?
0
votes
1answer
53 views

Cisco IOS: Logging only debug messages on command-line

I want to have a quiet command-line such as (config)# no logging console causes. Still, I want to make use of # debug commands. It appears to me that # debug depends on syslog level 7. So I cannot ...
90
votes
24answers
27k views

How do I prevent accidental rm -rf /*?

I just ran rm -rf /* accidentally, but I meant rm -rf ./* (notice the star after the slash). alias rm='rm -i' and --preserve-root by default didn't save me, so are there any automatic safeguards for ...
1
vote
2answers
4k views

How can I delete virtual networks from command line?

I have Hyper-V Server 2008 R2 (without GUI) running at my colo for a week. I was connected via RDP and could use the menu interface and command line. I figured out how to connect Hyper-V Manager from ...
20
votes
7answers
50k views

How to display certain lines from a text file in Linux?

I guess everyone knows the useful Linux cmd line utilities head and tail. Head allows you to print the first X lines of a file, tail does the same but prints the end of the file. What is a good ...
1
vote
5answers
2k views

Make ls print it all on one line (like in terminal)

ls prints differently depending on whether the output is to a terminal or to something else. e.g.: $ ls . file1 file2 $ ls . | head file1 file2 Is there some way to make ls print out on one line ...
0
votes
1answer
920 views

Disable LDAP service in CentOS 6.3

What command needed to disable LDAP service in CentOS 6.3. I tried: authconfig --disableldap but it doesn't work. I am trying to run ISC-DHCP in my machine but it always shows Not searching ...
20
votes
4answers
153k views

How to check who is currently logged on to windows workstation from command line?

Environment is in domain, server is Windows Server 2003, workstations have Vista and XP installed. I need the way to check remotely who is currently logged on workstation, preferably from some simple ...
6
votes
5answers
3k views

Linux Command line tool to work with netmasks / CIDR notation

I'm terrible at working out network subnets in my head. Is there some command line tool for linux (ubuntu packages a plus), that lets me put in 255.255.255.224 and it'll tell me that is a /27?
4
votes
1answer
3k views

How do I print contents of at jobs?

I have a Debian box with some jobs scheduled using at. I know I can list the jobs with their times using atq, but is there any way to print out their contents, apart from peeking into ...
0
votes
2answers
461 views

How to scan only last 24 hours files with clamav

I've create a bash script to scan whole server for virus via clamav. The script has been running via cron every night. Because of this I want to scan only the files that has been added last 24 hours. ...
3
votes
5answers
2k views

prevent xargs from quitting on error

According to the man page, xargs will quit if one of the execution lines exits with an error of 255: If any invocation of the command exits with a status of 255, xargs will stop immediately ...
4
votes
3answers
328 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 ...
1
vote
1answer
58 views

The best approach to access server in DMZ (outside domain) from LAN via command line (MS Windows)

I have two servers: SVR1 (Windows Server 2008) in LAN - part of domain SVR2 (Windows Server 2008) in DMZ - workgroup I need to access SVR2 from SVR1 via command line batch - copy some files and ...
1
vote
2answers
325 views

Linux command line based spam checker?

Does a command line based spam checker exist? We have created a mailbox at a 3rd party, and unfortunately decided on spam checking 'disabled' in the initial setup. There is no way to re-enable spam ...
0
votes
1answer
50 views

change in Registry settings does not reflect for the corresponding settings in GUI in windows 2003 server

I have updated registry value for Software Restriction Policies/Security Levels. However, changes were not reflecting in the GUI. I have restarted the server still no effect. below command is used to ...
-1
votes
2answers
72 views

How to run batch file without a window in ONE file

I know how to run batch files without a window thanks to this question here: Run a .bat file in a scheduled task without a window. The first answer is the one I am using. It states that to run a ...
3
votes
3answers
771 views

How to add a web folder via command line (Windows)

I am trying to add a web folder via command line in windows. At first I though I should use the "net use" command, but when I tried I kept getting System error 67: C:>net use * ...
0
votes
2answers
38 views

Using find to exclude a directory and tar up everything else in a directory

I have following in a directory: dir1 dir2 file1 file2 I want to tar up everything except dir1 When I do: find . -path '*dir1*' -prune -o -print I don't see dir1 in the output ( as expected) ...
5
votes
3answers
5k views

How to use Amazon EC2 command line interface?

I am trying to use the command line interface to get a description of an EC2 instance that I just setup. I connected to the server via ssh and ran the command ec2-describe-images ami-12345abc. ...
1
vote
1answer
50 views

Will systeminfo's “OS Name:” line distinguish between Windows 2003 and 2003 R2?

First, please verify visually that you have a 2003 R2 installation by opening Control Panel\System Properties and checking that R2 is shown like this: Alternatively, R2 should be mentioned on the ...
1
vote
3answers
437 views

How to split a file and compress directly?

I've a 100GB file and I want to split into 100 of 1GB file each (by line break) e.g. split --bytes=1024M /path/to/input /path/to/output For the 100 files generated, I want to apply gzip/zip to ...
1
vote
6answers
21k views

Convert a CSV file to a XLS file on the linux command line?

I'm using Debian Linux and I want to convert a CSV file to an Excel XLS Spreadsheet file. The catdoc package includes the xls2csv command that converts from XLS to CSV. However it doesn't do the ...
-3
votes
1answer
42 views

How does “yum info” work? [closed]

I want to know how the yum info command works. I know yum info will display information about the installed package, but I really want to know which file it reads for that information. Whether it's ...
3
votes
8answers
278 views

Ping stops responding after the first line

I have a problem with the PING command on Windows 8.1. During a ping, the command returns no further output after sending the first ping request. For example: ping 192.168.1.200 Pinging ...
1
vote
3answers
4k 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 ...
24
votes
6answers
24k views

How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?

How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
0
votes
2answers
24 views

Replace date in epoch (seconds) format to normal in a log file

I am on a ubuntu machine trying to read from log files and found the logs contain date and time in epoch format(seconds). How can I convert these dates in numbers into any readable format from command ...
8
votes
5answers
5k views

how to generate a random MAC address from the Linux command line

How do I generate a random MAC address from the Linux command line? I search for a solution that only requires standard tools commonly found on the Linux command line. The MAC address will be used ...
3
votes
2answers
93 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 ...
-1
votes
1answer
81 views

How to display free disk space on cifs mount on linux command line? [closed]

In case there's any distinction between OS and shell necessary, I want to run the command on Ubuntu 14.04 with Linux 3.13 in GNU bash 4.3.11. mount.cifs's version is 6.0 using smb2 protocol. After ...
1
vote
4answers
924 views

Filter fields with space character from csv file on command line

A csv file with multiple records is delimited by |. field1|field2|field3|field4|field5 I want to check if field3 is blank or contains "space" characters only. If it is blank or space, the whole ...
1
vote
1answer
1k views

Piping DSQUERY commands together

Can DSQUERY commands be piped together? eg to return a list of users in each of the groups found within the 'Builtin' container? dsquery groups "cn=Builtin,dc=domain,dc=company" | dsquery groups ...
41
votes
8answers
44k views

How do I find the UUID of a partition

I'm running Ubuntu, and want to find out the UUID of a particular partition. I know I can use e2label /dev/sda1 to find out the partition label, but there doesn't seem to be a similar way to find the ...
1
vote
1answer
69 views

Simple backup tape wiping, from linux shell?

I have a pile of old unencrypted backup tapes I want to discard, and I'm looking for a really simple and free erase method. I have previously used the following method to zero hard drives on linux. ...
1
vote
2answers
400 views

How to install Perl Power Tools on Windows

Are the Perl Power Tools still around? I'm trying to install them on Windows Server 2008 with Strawberry Perl. If I search the web I get: http://sourceforge.net/projects/ppt/ as first link, where I ...