Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
1answer
36 views

How to get a process ID automaticly with command prompt [closed]

I´d want to know how to get a PID of a process with a single command in command prompt. I tried it with findstr, but I´m (apparently) not so smart to figure it out. You cannot use tasklist, because ...
0
votes
0answers
19 views

In what Cisco IOS versions is the “Show LLDP Neighbors” command available?

Could anyone help me with this? Or a place to find command and availability in versions or devices? I'm really new to networking. Thanks in advance.
1
vote
1answer
32 views

dsget error probably because of users with “-” in their name

I'm trying to run a dsquery/dsget that will result in users that weren't active for a month and that are not disabled: dsquery user -inactive 4 -limit 0 | dsget user -samid -disabled ...
0
votes
1answer
97 views

tail command not updating output for debug files

I know that tail -f /var/log/messages will be keep updating on screen as the contents of file gets updated. But when I tried the same thing with a debug file system's file it is not working , any ...
0
votes
1answer
183 views

Exchange 2007 - getting an item count from a specified date range

Using the command below in Exchange Management Shell, I am able to get a list of all mailboxes on our Exchange server, along with their display names, size, and item count: Get-MailboxStatistics | ...
3
votes
1answer
380 views

How can I determine valid Mac OS X Server `serveradmin` commands?

I've used Mac OS X Server's serveradmin command line interface for Server Admin.app & now Server.app for starting & stopping services, viewing status & settings, and occasionally running ...
1
vote
3answers
123 views

Looking for a package that aliases commands on multiple remote hosts using ssh

i would like to find a program that maintains a list of commands that can be aliased for different hosts. for example, we have a database server, and four web servers. a common task is to login to ...
1
vote
2answers
374 views

CentOS: command not linked/working

Recently installed CentOS and many commands are not working: [root@zrebirth zeno]# quotacheck bash: quotacheck: command not found [root@zrebirth zeno]# adduser bash: adduser: command not found ...
4
votes
1answer
802 views

How do I know the old os level in AIX?

I am stuck to find what was the older/previous version of my AIX OS? To find the current OS version we use :- oslevel -s what is the command to find the previous version from which it was ...
2
votes
4answers
3k views

Is there a Unix-type command to kill all processes with a certain name?

I run a script called "delayed_job" for a Ruby on Rails application. One of the options is to run this proc with a separate monitor proc. When the main proc dies, the monitor will spawn a new one. I ...
1
vote
2answers
448 views

SSH: Give user read/write permissions [closed]

How do I give a user certain read/write permissions?
1
vote
1answer
876 views

rebuild raid array mdadm command

I have created a raid array say RAID5 or RAID10 with four drives. I wish to force resync of the same array, Please let me know the mdadm command for the same. Also, in case of RAID1 (mirroring) what ...
5
votes
3answers
273 views

Can I place my script in /usr/bin?

I wrote a small bash script for starting, stopping and restarting my java applications and I want to make it available to all users so they could run it. Should I just place it in /usr/bin to do that? ...
1
vote
3answers
139 views

Log ssh communications

I have a closed source program which calls server over SSH and executes a set of commands. Could you tell me how can I log all commands? My server is under Ubuntu.
0
votes
1answer
120 views

Monitor status while using VNC

So after connecting to a vnc server via vnc viewer to my desktop (remotely), Is it possible to know whether the monitor connected to the CPU is switched ON or not. Simply put, from command prompt how ...
0
votes
1answer
1k views

detect specific device is USB / SATA apart from dmesg output

Suppose in a linux machine you have both SATA and USB devices present, and if they are all detected properly, how do you know whether a specific device(sda1/ sdb1) is USB device OR SATA device. Note: ...
5
votes
1answer
2k views

Sudo !! equivalent in PowerShell

"Sudo !!" invokes previously executed command with administrator privileges in *nix shell. Is there an equivalent in PowerShell?
1
vote
3answers
922 views

fdisk - partition in single line

Can you create a partition in a usb disk using fdisk command in a single line. fdisk command is interactive in nature, But I want to automate partition creation in a single line using fdisk command.
1
vote
1answer
921 views

Repair or Replace /bin/ folder in Linux

After a power outage, my CentOS server began having a problem where many of the system commands became corrupted. As a result I have been getting messages saying "cannot execute binary file" on ...
0
votes
1answer
63 views

Will this code (command) work in a cron job, or do I need to put it into a file?

Some commands I use (i.e rsync) work fine in cron jobs; Will this: find /path/to/files* -mtime +30 -exec rm {} \; ...or do I need to put it into a file? I can test it myself soon, however asking ...
1
vote
5answers
636 views

Is there a way I can queue long running tasks?

Is there a way I can do the following in a unix terminal: Start a long running process Add another long running process to start when the previous is done Repeat step 2 until I have queued the ...
0
votes
2answers
699 views

Newb question: “service” command unavailable on CentOS 5.5

Pages like this say that you can service iptables restart ...but I get a command not found error. I tried yum install service but there's no such package. How do I restart services?
2
votes
1answer
3k views

RSYNC and SCP differences

How does rsync differ with scp in terms of transfer speed, maximum transfer size etc ? Or they very similar ? And in what type of scenarios do we need to use these commands ?
0
votes
1answer
105 views

putty ssh client tuturial?

i really wanted to learn about using linux commands, so i can access my remote server, i wanted a good tuturial on how i can use this once for all, before i used always avoid it figure its important ...
1
vote
2answers
4k views

How Do i Add A LIne To A PIX Firewall's Access List?

I need to open a port on a PIX 515. Please can someone explain what I should be entering including the commands. For the purposes of the explanation (so I can understand it ) I've given the ...
0
votes
1answer
382 views

cisco commands to kickout users

I need a cisco router commands to end a user session at console port. The commands will be issued to the router using another software periodically. The purpose is to end a user session connected to ...
0
votes
2answers
118 views

Free command with -o option

What does free command witj -o indicate , man page says it disables buffer adjusted line. It subtracts buffer memory from free memory. What does this mean
0
votes
3answers
246 views

how to find out offending user using tty information

I have an script called wow.sh on a shared machine. 'ps -ef | grep wow' shows multiple runs of the same script. How can I use the tty information to find the offending users ip?
1
vote
1answer
2k views

How do I view frequency of disk I/O wait states in Windows 7?

I can see most everything except this statistic between the Task Manager, Performance Monitor, and Resource Monitor. On linux, this is fairly easy to get at via the iostat command.
0
votes
2answers
117 views

Cisco command wont work on syxtax checker

I'm trying to validate the building of a tool for managing Cisco ACL commands. Thing is i'm using the aclcheck sintax validator (i dont own cisco equipament) with the following command do check ...
0
votes
2answers
499 views

Syntax checker working crazy with cisco

I'm trying to verify only two commands for cisco IOS ACL Extendend. They are: access-list 101 deny any 192.168.0.0/23 any access-list 101 permit udp 192.168.1.1 any For this i`m using a ...
3
votes
6answers
2k views

Same command on multiple servers

I'm just wondering if there is any fellow sysadmin with the need to execute one command on multiple servers. If so, what technique are you using? I have grown tired to ssh-ing to 3-5 servers and ...
16
votes
2answers
3k views

What is /usr/bin/[?

I was just poking around in /usr/bin and I found an ELF binary file called [. /usr/bin/[. I have never heard of this file and my first thought was that it was a clever way of hiding a program, ...
2
votes
3answers
3k views

PowerShell script, showing commands run

I am playing around with PowerShell scripts and they're working great. However, I am wondering if there is any way to also show all the commands that were run, just as if you were manually typing ...
14
votes
7answers
24k views

Is there a global, persistent CMD history?

Sometimes I forget how the exact syntax of a CMD command looks and then I would like to search my own CMD history. Clearly, within the same session, you can browse it with the up and down arrow keys ...
1
vote
2answers
166 views

Using rsync and which directories should I place in my exclude file when using rsync?

I would like to use a CentOS VM for a mirrored full backup of my CentOS mail server. Both are the same version and are up-to-date. I have found that without excluding certain directories the VM backup ...
0
votes
2answers
262 views

A few linux server questions

I want to use Dos Deflate, do I need to use APF or does this script work with CSF as well? What is the command to tell if APF is running? What is the command to tell if CSF is running? I am using my ...
11
votes
2answers
8k views

When to use single-quote, double-quote in grep?

While trying to search for a simple pattern "hello" in a file, all the following forms of grep work: grep hello file1 grep 'hello' file1 grep "hello" file1 Is there a specific case where one of ...
1
vote
4answers
318 views

How to pass a string to a command (Linux)

I have a case where I am passing a content of a file to a command like this: cat file_name.txt | my_command But I want to pass a string directly, without reading a txt file content. So I want to ...
1
vote
5answers
2k views

Is there a command for monitoring network connections in realtime on FreeBSD?

I'm having problems all over our LAN where Firefox is not closing network connections when using our internal webapp. It closes some but not all of the connections, repeat this often enough and your ...
10
votes
5answers
16k views

Using SSH to remotely start a process

I have written a script that I am using to push and deploy a new service to several machines under my control, and in order to execute the process I am using ssh to remotely start the process. ...
5
votes
8answers
9k views

remote command execution on Windows 2003 server

I have a single command that I would like to execute on a remote Windows 2003 server. I have tried wmic, which works, but the only way to display standard output is to redirect it to a local file, ...