The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
0answers
14 views

How to mount an FTP folder to a drive letter in windows using command prompt in windows7/8/10? [on hold]

I would like to mount some different ftp folders (from different FTP server too) to drive letters in windows 7/8/10 by using command prompt. Can you help please?
5
votes
0answers
262 views

Renaming: How to attach a word or rename multiple files [migrated]

I have multiple files in my directory. for example: eventDataLog.txt.2015-04-23-22 eventDataLog.txt.2015-04-23-23 eventDataLog.txt.2015-04-24-01 eventDataLog.txt.2015-04-24-02 ...
7
votes
5answers
2k views

Pass a pipe to a command that expects a filename

Say I have a command foo which takes a filename argument: foo myfile.txt. Annoyingly, foo doesn't read from standard input. Instead of an actual file, I'd like to pass it the result of another command ...
1
vote
1answer
41 views

Command substitution into bash script $1 value

I have this simple script which changes permissions on my apache2 websites /var/www/html# cat permissions_setup.sh chown -R root $1 chgrp -R www-data $1 chmod -R 750 $1 chmod g+s $1 I have two .sh ...
3
votes
2answers
5k views

Command to create MySQL database with Character set UTF-8

I use create database dbname; to create database. but I want it to created with Character set UTF-8 Anyone know what is the command to use?
0
votes
1answer
13 views

run remote command to save debian package list

I'd like to backup the package list(dpkg) of some remote computers to a backup server: all of them running Debian. I already configured the rsa key to login remotely as root on the other computers ...
13
votes
4answers
33k views

Nginx enable site command

We all know how to enable a website using apache on linux. I'm pretty sure that we all agree on using the a2ensite command. Unfortunately there is no default equivalent command comes with Nginx, but ...
0
votes
2answers
37 views

how to identify a command prompt window?

Enviroment: windows 7 Currently i have machine on which we launch 2 batch files on system start up. These batch files internally run multiple programs by running on separate command prompt windows. ...
12
votes
2answers
19k views

How to check if a RSA public / private key pair matched

I have two files, id_rsa and id_rsa.pub, what command can be used to validate if they are the valid pair.
-1
votes
1answer
41 views

Search for file names containing space

I have a batch file that helps me in install multiple pieces of software from a shared folder. It's working well with software whose names don't contain spaces, but I need it to work with software ...
1
vote
2answers
30 views

How to cp only into the latest directory name?

mkdir test_dir test_dir1 test_dir2 test_dir3 touch file1 file2 file3 cp -v file* test_dir*/ This copies only to test_dir3 and not in test_dir, test_dir1, test_dir2. Why? For that matter it copies ...
0
votes
0answers
15 views

Command piped - nagios information status not expected

First of all, thanks for reading. I am configuring a new service, basicly this checks the number of entries on de home directory, is very simple. define service{ use ...
1
vote
2answers
5k views

What is the command to enable 3rd party SFP+ transceivers on Arista switch?

Does anyone know the command that enables the usage of 3rd party SFP+ on an Arista 7148S switch?
0
votes
3answers
133 views

How to find which folder is eating space fast? [duplicate]

I am running Linux server, we using this server as a samba share drive. From yesterday suddenly, one of the share drive size getting increasing (~ 100 MB every ten min). There are too many folders and ...
2
votes
3answers
45 views

Output of a command to the first line of a file

I am trying to insert output of a command into the first line of a file. For example, I have a file named "list.txt" and want to insert a text containing all the file names in that folder. A way to ...
2
votes
4answers
4k 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 ...
1
vote
1answer
242 views

Issue command on multiple systems at once using MCollective

Aim The aim is to execute a command on multiple systems at once using MCollective, e.g., touch /tmp/helloworld using MCollective-client creates touch /tmp/helloworld on all MCollective-servers: ...
7
votes
3answers
3k views

Linux: cat with separators among files

In Linux if you type cat *, you will get something like this: line1 from file1 line2 from file1 line1 from file2 line1 from file3 line2 from file3 line3 from file3 What I would like is to display ...
1
vote
1answer
468 views

mysql won't run from command line

When trying to run the /etc/bin/mysql command from the command line, I'm returned to the prompt without any action. Restarting mysql via /etc/init.d/mysql restart shows the following error during the ...
1
vote
1answer
11k views

How to print list of users and groups on FreeBSD?

How to print list of users and groups on FreeBSD?
1
vote
2answers
1k views

Meaning of killall -0

I see from many place the follow command is used to check if a process exists, e.g. killall -0 nginx But from the documentation I can't see anything related to this argument, can anyone explain?
-2
votes
1answer
52 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
50 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.
3
votes
1answer
364 views

Meaning of requeues of tc command

I ran this tc bellow and it outputs requeues with high number, do you know what this requeues means? By the way, it keeps increasing over the time. I look at man tc but I couldn't find anything. $ ...
1
vote
1answer
485 views

Command apt-get -t wheezy-backports install linux-image-amd64

I have a server with Debian wheezy and kernel vmlinuz-3.2.0-4-amd64, hosted at OVH. I would like to upgrade the kernel. Normally at ovh, you can find some kernel already configured. but the files I ...
5
votes
1answer
2k views

Installing a php extension (xdiff) from pecl on Linux

I was getting this error on my php script: Fatal error: Call to undefined function xdiff_file_diff() I realised that I didn't had the xdiff extension installed. When I tried to install it using the ...
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 ...
20
votes
7answers
42k 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
1answer
51 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 ...
1
vote
2answers
244 views

Can I find the list of ports being listened by a process ordered by the time of opening?

I know I can see the list of open ports using the lsof command. I am trying to view the results ordered by timestamp of listening. The process opens multiple (~6) ports and I suspect the order of ...
0
votes
2answers
2k views

why does sudo su; su tomcat doesn't switch to tomcat user?

In Redhat linux. from my user if I issue command sudo su -> changes to root su tomcat --> changes to tomcat user Why does tailing the commands in single line doesn't work? sudo su; su tomcat --> stil ...
1
vote
1answer
835 views

embedded white space in nagios arguments

I created my own nagios command $USER1$/check_http -H $HOSTNAME$ -p $ARG1$ -u $ARG2$ -e $ARG3$ -w 5 -c 10 -4 used by a new service. When the $ARG3$ contains some white space (for instance "200 ...
-1
votes
2answers
251 views

can't find the executable for the command linux 'source' [closed]

i am using ubuntu server 12.04 lts. I am looking for the executable of the linux command source i can not find in the /bin nor /usr/bin nor /usr/sbin nor /usr/local/bin . I used whereis source it ...
0
votes
1answer
150 views

task manager performance tab

I am trying to have task manager open on the Performance tab on startup on Windows 8, 8.1, and 2012 machines. I have gotten the task manager to open, but it always does so on the Processes tab and ...
4
votes
4answers
2k views

Handy parsing for numbers with unit suffixes?

Let's say you have data with quantities in human-readable format, such as the output of du -h, and want to further operate on those numbers. Let's say you want to pipe your data through grep to do a ...
2
votes
2answers
111 views

how to browse a folder named '-' in linux machine

I have created a directory named - [root@server50 public_html]# mkdir - [root@server50 public_html]# ls -al drwxr-xr-x 2 root root 4096 2011-03-16 02:22 - How can I enter the directory ...
2
votes
1answer
249 views

Bash: two commands in dollar-parenthesis don't have same behavior

I don't undertsand why, in Bash: echo $(hostname --fqdn) works, echo $(id -un) doesn't (id: –un: No such user). Backticks give the same results. Is there some good practice for using this ...
1
vote
2answers
676 views

How to check that all ZFS snapshots within a pool are without holds before destroying that pool

Question Already I can check each snapshot of a filesystem individually, manually. I would prefer to check all at once (all with a single command or script). Please: can that be done with a ...
1
vote
1answer
555 views

Can sftp check for existing data?

I have 700 binary files (pdf) to download and right now only 400 are available on a sftp server. Can sftp, from the cli, determine what files exist in the local directory so it doesn't need to ...
0
votes
0answers
232 views

Need help getting two commands to run on startup (Seafile)

Trying to get the Dropbox alternative Seafile to run automatically on startup on my VPS running on CentOS 6.4. I want to get these two commands on startup. Noob here, any help will be really ...
0
votes
1answer
230 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 ...
1
vote
3answers
148 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.
-1
votes
2answers
136 views

Python script to log name, date, and command of every command users have entered

I want to create a script, possibly in python, open to suggestions, it logs every command typed on the server. so it would log, user, timestamp and command. Is this possible?
0
votes
1answer
143 views

Create Logfile for all fired commands on server

I want to maintain logfile for all fired command on server. We have more than 3 admins and I want to monitor all commands which are fired by these. Is it possible ?
0
votes
1answer
246 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 | ...
-1
votes
2answers
209 views

nested Cmnd_Alias in sudo configuration

im trying to simplify my sudo configuration but not sure if sudo supports this configuration. I have a "view" command alias which we use to provide access to log files: Cmnd_Alias VIEW = ...
1
vote
3answers
128 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 ...
0
votes
2answers
514 views

How to run Linux system commands from web interface?

I'm looking for a clean and secure way to run specific Linux system commands from a web interface. Let's say I would like to sudo -u differentuser ping 0.0.0.0. The IP address is supplied by user in ...
0
votes
0answers
278 views

shell command queuing system linux (like atd)

I need to queue shell commands depending on current available resources. I know of atd and it's exactly the type of tool I would like to find but with consideration for RAM and possibly disk ...
-1
votes
1answer
92 views

ssh argument command not passed

Doing this command: iptables -I INPUT -d xxx.xxx.xxx.xxx -p tcp --dport 80 -m string --to 70 \ --algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP I got this error on ssh console: "bad argument ...