Command Line interface (CLI)

learn more… | top users | synonyms (2)

-2
votes
1answer
95 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
77 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
172 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
788 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.
1
vote
2answers
405 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
194 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
36 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 ...
5
votes
1answer
2k 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
79 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
127 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. ...
1
vote
1answer
626 views

Full Information from Terminal Services Manager (tsadmin.msc) via command line

I would like to get the full session information that is presented in the Terminal Services Manager via the command line or PowerShell (so that it can be used in automation) or at the very least the ...
0
votes
0answers
76 views

Is there any way to 'describe-instances' for another AWS account from awscli?

I've added a role to allow another account to list instances, but there doesn't appear to be any option to choose which account I'm listing instances from. Is there some undocumented option to pass in ...
0
votes
2answers
805 views

mysql: unrecognized service … but mysql is installed and it's working

I'm trying to stop mysql and do some changes , then i'm going to start it again I'm using a SSH client . So i ran this 3 commends without any problem mysql mysql> SET GLOBAL ...
1
vote
2answers
120 views

Why would some folders be invisible on the command line?

I have a webserver which I log into over SSH. Recently, and I don't know what changed to cause this, any directory or symlink named "system" became invisible. After SSHing into the server on the ...
0
votes
1answer
81 views

Netcat: connection lost before transfer is complete

Interesting thing with Netcat (nc) in CentOS 5 or 6 (nc-1.84-10.fc6 or nc-1.84-22.el6.x86_64). How can I work it around? I can't find a bug about this, but It models a file transfer to a remote ...
0
votes
1answer
523 views

Cron won't use msmtp to send emails in case of failed cronjob

I'm trying to configure a machine so that it will send me an email if one of the cronjobs output something in case of an error. I'm using Debian Wheezy. Cron is working normally (without the email ...
0
votes
0answers
137 views

Edit DNS records from the command line in Mountain Lion Server

I'm trying to edit a DNS A record in Mountain Lion server using the serveradmin command. I can pull up the list of records using sudo serveradmin settings dns and I get this record I want to ...
9
votes
1answer
4k views

Administrator view ALL mapped drives

In my understanding of security, an administrator should be able to view all connections to and from a computer - just as they can view all processes/owner, network connections/owning process. ...
0
votes
2answers
50 views

How to broadcast a command on Windows

I am going to frequently deploy different versions of a program on a cluster of Windows machines (mostly Windows XP), so I am willing to use a command-line broadcasting tool (either built-in or ...
0
votes
1answer
3k views

Scan for hardware changes in Windows using command line

How can I scan for hardware changes in Windows using the command line? I'm looking for the same functionality as right-click "Scan for Hardware Changes" in the Device Manager.
1
vote
4answers
264 views

Count requests from access log for the last 7 days

I would like to parse an access log file and have returned the amount of requests for the last 7 days. I have this command cut -d'"' -f3 /var/log/apache/access.log | cut -d' ' -f2 | sort | uniq -c | ...
3
votes
1answer
951 views

dsadd gives “The name provided is not a properly formed account name.”

This command: dsadd user "cn=testing dummy2,cn=Users,dc=domain,dc=local" -display "testing dummy2" -samid testing.dummy2@domain.local -pwd password76 -fn testing -ln dummy2 -disabled no -upn ...
0
votes
1answer
35 views

list all files with the same name in order of when they were modified

I have a directory, let's call it htdocs/live/. Many different directories are underneath this directory, each with a file commonFunctions.js living in the js directory. For example, here is the ...
1
vote
1answer
62 views

Sent command-line output as an arguments to other command

1) Here is the command to install special package (for example system/header) #pkg install system/header 2) ALso we can install several packages #pkg install system/header network/ssh package/rpm ...
0
votes
1answer
731 views

Import an SSL Certificate into IIS 7 from the command line

I have an SSL Certificate which has been exported into a PFX file. How can I import this file into an IIS 7 instace from the command line? I do not want to bind it against a specific site, just ...
1
vote
3answers
1k views

In PowerShell, how can I parse a preformatted output?

Is there existing tooling to take text-based output and pipe it to a dynamic object that can be queried as columns? Specifically, I'm invoking .. query session /server:MYSERVER .. which is ...
2
votes
1answer
98 views

Command-line interface for Computer Managment MMC?

I want to make a script that closes open files in our storage. I can do it with compmgmt.msc, connecting to the storage as a remote computer, then I go to "System Tools" --> "Shared Folders" --> ...
1
vote
1answer
592 views

OpenShift: Connecting to JBoss EAP 6 management (SSH tunneling?)

I'm trying to connect to JBoss EAP 6 instance management on OpenShift. Connecting directly doesn't work (firewall), so I want to set up a SSH tunnel: ssh -L 10999:localhost:9999 ...
2
votes
2answers
198 views

How Can I Create Multiple Files of a single file in multiple Directories?

Hello I am trying to create multiple copies of a single file in multiple directories? for example I have 6 folders with a single file in each folder named lp.html, How can I run a batch to create 100 ...
1
vote
1answer
1k views

How send email from command line specifying the email subject and using postfix?

I installed Postfix, and get the /usr/lib/sendmail binary. What I want is send an email alo /usr/bin/printf "%b" "EMAIL_BODY" | /usr/lib/sendmail -s "EMAIL_SUBJECT" destination@adress.com But the ...
5
votes
1answer
421 views

why top gives cpu percents more than 100%

see below statistics by "top -u steve", something is wrong with top? PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3490 steve 20 0 10444 312 248 R 114 0.0 23:33.22 ...
-1
votes
2answers
62 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 ....
3
votes
1answer
2k views

Drive not showing in File Explorer after “net use” command

I am running Windows 8 64bit and running Hyper-V VM's. On my host machine I want to map a drive to the VM using the following command. net use * \\10.10.18.104\c$ Drive Y: is now connected to ...
2
votes
3answers
480 views

how to convert a running process into a nohup and keep a logfile

I have a process currently occupying a terminal ]$ command some_argument I want to exit from the terminal and go home, but in the mean time I don't want to kill this running process. For the ...
4
votes
4answers
3k views

How to move a set of files on the same FTP server?

On the remote FTP server, I have a set of files in the directory remote.dir1. I would like to move all the files in that directory to remote.dir2. I am using lftp and was trying something like this: ...
-1
votes
1answer
22 views

quicker navigation in mc? [closed]

Is there any way to speed up navigation in mc? I really like it for it's features, but I'm much quicker at getting where I want in zsh with tab-completion. Holding arrows to get the cursor to a ...
-1
votes
2answers
106 views

Command only working when put directly in command prompt, not in batch file

On my SBS 2011 I have a batch file called wakeup-nas.bat, with the following contents: wol.exe 5475e0d59ffa wol.exe is an executable for sending wake on lan packets. It is in the same directory as ...
1
vote
2answers
40 views

Script return summary of exit codes

I use this command for test my html pages for errors: find . -iname '*html' -type f -print -exec /usr/local/bin/tidy -q -e {} \; And I want to get exit code > 0 if any errors was founded by tidy. ...
-3
votes
3answers
50 views

VM Connected to a Domain

I'm working with an automated tool that deploys VMs to center. It is setup within the customspec to be connected to a domain [windows]. After the VM is clone, we get a success state from VMWare that ...
0
votes
1answer
90 views

find all end subdirectories in a tree

given the following structure: oz123@debian:~/ $ tree . . ├── a │   ├── a1 │   ├── a2 │   └── a3 ├── a1 │   ├── a11 │   ├── a12 │   └── a31 ├── b │   └── b1 │   ├── b11 │   │   └── b21 │   ...
2
votes
2answers
630 views

CVS command to list all available modules to checkout?

I'm running CVS in a bash shell. I'm just trying to see which modules are available for checkout. I've been researching for a while and the only thing I've come up with is: cvs checkout -c which ...
11
votes
3answers
898 views

Combined vMotion and SvMotion via the vSphere Command-Line interface

Since vSphere 5.x we can now request a combined vMotion and Storage vMotion at the same time via the Web Client - but can it be done via the CLI (not PowerCLI)? I've read the documentation for 5.1 ...
0
votes
1answer
113 views

Share CIFS mounted drive with all users

A CIFS share, mounted as network drive, seems to be visible only to the user who set it up. Is there a way to make the drive accessible to all the local users on the system ? Trying to achieve this ...
2
votes
2answers
54 views

Listing or Working With a Range in the Shell

Is there any way I can target a range of a-c* in one go? For example, instead of doing this individually; /home/a* /home/b* /home/c* I've tried testing with ls, but not sure if it's working right. ...
0
votes
3answers
232 views

Starting a background screen session from ssh.

I would like to shoot a command to server to be run say forever! under "screen session" using ssh. so I am using something like ssh -t root@server screen -S myinf "python infinit1.py &" where ...
1
vote
1answer
916 views

Is it possible to Takeown.exe of a folder for the “Everyone” user, on Windows

I can use takeown.exe to give the currently logged in user ownership of a folder. But when I try: takeown /s jimswork8 /u Everyone /f c:\test /R /D Y It just gives ownership to the currently logged ...
-2
votes
1answer
4k views

Cannot find a valid baseurl for any repo in centos 6.4

when I want to install any repo I found this error Error: Cannot find a valid baseurl for repo: rpmfusion-free I'm using centos 6.4 I tried to check other packages I found the same error ... so ...
0
votes
1answer
635 views

create registry key using variable in batch file 2008r2

I would like to create a new registry key to add the current computer name to the internet explorer trusted sites in windows 2008r2 x64 My server is called "MyServerName" in a batch file if I type ...
0
votes
1answer
1k views

run winexe on linux in order to exe CLI commands on WIN server ( workgroup server )

winexe is tool that can execute commands on WIN machines from Linux servers winexe syntax should be as the following: winexe -U [Domain/]User%Password //host command Because I have windows 7 ...
2
votes
1answer
78 views

How to Add color support to watch command

as the title says, I want to see colors in my watch command. ex: # enable colors when running javascript unittests with watch watch mocha # enable colors when doing `ls` watch ls -aG