The commands tag has no wiki summary.
1
vote
2answers
33 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
...
3
votes
1answer
105 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
122 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
57 views
0
votes
1answer
99 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 ...
0
votes
0answers
53 views
What is “no-forwarding” option means on Juniper show configurations?
What is "no-forwarding" option means on Juniper show configurations?
Something like
show system uptime no-forwarding
show version detail no-forwarding
show chassis hardware detail no-forwarding
show ...
5
votes
3answers
132 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? ...
0
votes
1answer
67 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
243 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
232 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
191 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
167 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
50 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
188 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
183 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?
1
vote
1answer
789 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
76 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
828 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
150 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
69 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
156 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?
0
votes
1answer
170 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
81 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
206 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 ...
2
votes
7answers
902 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 ...
13
votes
2answers
881 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
672 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 ...
3
votes
3answers
4k 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
118 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
235 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 ...
4
votes
2answers
3k 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
188 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
717 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 ...
3
votes
5answers
3k 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. ...
3
votes
8answers
3k 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, ...
8
votes
10answers
1k views
Useful Commandline Commands on Unix
As there is a windows version of this question, I decided to open a community wiki for the same question under unix, linux, and the like.
I'll be updating this list with the answers:
bash: exec ...
283
votes
160answers
48k views
Useful Command-line Commands on Windows
The aim for this Wiki is to promote using a command to open up commonly used applications without having to go through many mouse clicks - thus saving time on monitoring and troubleshooting Windows ...