0
votes
1answer
41 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
1answer
756 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
222 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
108 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
924 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: ...
1
vote
3answers
774 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
746 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 ...
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
102 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 ...
0
votes
2answers
113 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
236 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?
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, ...
0
votes
2answers
260 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 ...
1
vote
4answers
285 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 ...