If you run this command on your computer, how many active and passive connections openings are you typically supposed to have? Specifically, for a firewalled home PC behind a wifi router/cable modem combination. Can someone explain the purpose of this command?
Hey guys well, i killed a user that was ssh into my machine and a googled how to do it, however the command that I used to find he PID was
ps aux | egrep "sshd: [a-zA-Z]+@"
why not just use ps aux | grep sshd?
also can someone decipher what ps aux | egrep "sshd: [a-zA-Z]+@" means? I am not that advanced to understand what I googled on that? Also, is there a good tutorial to teach you those commands in depth like that? And what are they called? the (egrep "sshd: [a-zA-Z]+@") part.
Dear Team,
i just received some new space from storage and verified it is allocated on the server by multipath command. now i want to resize the existing partition. Please help me for the same.
below is the multipath command output
multipath -ll
app2 (360060e80105ed650057075f500000011) dm-2 HITACHI,DF600F
[size=400G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 1:0:1:17 sdf 8:80 [active][ready]
\_ 2:0:1:17 sdi 8:128 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:0:17 sdg 8:96 [active][ready]
\_ 2:0:0:17 sdh 8:112 [active][ready]
app1 (360060e80105ed650057075f50000000a) dm-0 HITACHI,DF600F
[size=600G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 1:0:0:10 sdb 8:16 [active][ready]
\_ 2:0:0:10 sdd 8:48 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:1:10 sdc 8:32 [active][ready]
\_ 2:0:1:10 sde 8:64 [active][ready]
Here 600 GB is already applied and i want to add more 400 GB on the same existing partition.
below is the partition details.
df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 97G 9.9G 82G 11% /
/dev/sda5 49G 180M 46G 1% /backup
/dev/sda2 97G 21G 72G 23% /opt
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/app1p1 591G 117G 445G 21% /app
ls /dev/mapper/
app1 app1p1 app2 control
Please guide me how i can add 400GB space in same 600 GB (/app) partition.
Many Thanks !!
Jignesh Dholakiya
Hello, My issue is very common but, not able to resolve it.
Issue I am facing with my Linux (RHEL-5 32-bit) machine, where I am not able to connect to internet.
DWR-113 - D-Link Router is configured for 3G dongle (Vodafone India) - This setup is done via WiFi and not using the provided LAN cable from Win7 machine.
Internet is working absolutely fine in case of Wireless but, at same time when LAN cable is used internet is not working. [Able to ping to Router IP i.e. 192.168.0.1)
Similarly, from Linux box, ping to Router IP is working [LAN plugged] but, Internet not working. IP of linux machine: 192.168.0.60
Also, able to get the console connection of Linux from Windows box..[Windows connected to Router via WiFi and Linux connected to Router via LAN cable]
Please suggest how to get rid of this problem so that Internet will work on Linux via LAN cable.
Many Thanks,
Hy,
I am new to linuxquestion.org, however i am mid-level linux administrator.
As per my scenario, I want to cluster python and java services in two nodes running RHEL 6.4. Till now by watching tutorial I have seen application level clustering of linux for eg: webserver, mysql database and so on. However I haven't found any with python & java clustering.
I am already familiar with windows clustering having clustered ip of the two nodes. In my scenario, we have both the options open either going with active-active or active-passive cluster. So I want to some sort of idea to achieve linux os clustering and hence obtained clustered ip.
Further any idea on how this service will float from one node to another. Further, I cannot get to the fencing mechanism in Linux. Any idea for this will be helpful to understand.
Hope to get positive respond ASAP. Thanks in advance for those who help me with this.
I'm just getting into Bash scripting, and would appreciate some help with this question. My music collection is split into a smaller, "active" set, kept on my laptop, and a much larger collection on an external hard drive. I've just converted some of the larger filetypes on my "active" set to *.mp3, and now want to move all the original files (*.flac) to the external hard drive. I need some help putting together a command or script that will recursively search my active music set for *.flac and then move them, but keeping the source directory structure. Some or all of these subdirectories may not exist on the destination.
eg. On the active music set, I may have:
/Music/artist1/album1/(a mix of *.mp3 and *.flac files)
/Music/artist2/album1/(a mix of *.mp3 and *.flac files)
and on the hard drive
/Music 2/artist1/album2/(the contents of the album)
So when copying, it'll need to create "/album1/" in "artist1" on the destination, and also "/artist2/album1/"
Thanks in advance!
There is a home grown application that initiates either a telnet or ssh session based on the number of threads set.
I want to watch the process happen from start to finish, that is from the moment the first thread starts until the last thread finishes.
I was thinking netstat, but it wont show the process in its entirety. As connections are established and terminated the status / output of the command would be different..not to mention Id have to keep hitting the command and the enter key.
As usual, I have cracked my Linux in a nutshell book and will be doing web searches to find a solution.
This is a copy of my /etc/sysconfig/iptables.conf (w/o comments):
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
- Added the port 80/21 entries.
vsftpd does work.
"iptables-save | grep 80" returns nothing.
My web server works (internal and external).
"systemctl is-active iptables" shows "inactive"
I have "just" gotten firewalld up and running thanks to questions answered here.
iptables is truly a mystery to me.
Can someone explain why my web server/vsftpd are up and working w/o iptables being active? How can I get my network and security both up and working safely together?
If I enable/activate iptables, is this going to break my web server?
Is this the appropriate forum for this question?
As always, thank you for your time and patience,
Skip
Dear Friends ,
One of My linux server , I have 4 NIC card . I plugged a network cable one of NIC card . Now How can I understand which interface (eth0 or eth1 or eth2 or eth3) is connected with the cable ?
Which command I need to use to find it ?
My second question is :
using 'ethtool ' output I got a line : "Link detected : yes"
what does it means ?
Do it like this is your situation, your server, and the dir that are mentioned below, act like they are yours! im just looking for an accurate answer!
(student of O'Rielly School of Tech)
whenever you log in, your shell executes commands that it finds in your dotfiles, specifically .bash_login. In your .bash_login, add a series of commands that will first create a directory named ~/sysadmin1/my_peeps/$DATE, where $DATE is today's date in the format mmddyy. This command should succeed whether or not the directory ~/sysadmin1/my_peeps already exists. Then, it will redirect the output of the w command (which lists the currently logged in users on the system) to a file inside this newly created directory called users.$TIME, where $TIME is the current time in the format hhmmss (use 24 hour time).
In order to do this, you must use a new concept: assignment of a variable from the output of a command. For example, in order to set the variable EXAMPLEDATE using the unformatted output of the date command, you would do the following:
EXAMPLEDATE=`date`
The characters surrounding the date command are called "backticks." They are usually located on the same key as ~. They are not single quotation marks. This is actually another kind of expansion called "Command Substitution" (you can learn more in bash's manpage).
For this project, you can use the date command to get both the date and the current time, however, you will have to consult date's manpage to find out how to change the formatting.
Can you tell me the name and model number of a modem that is suitable for Unix? Input ADSL2+ or ADSL2+ AND wINDOWS etc. Output Ethernet/Usb etc.The service provider is "BELONG" who will not support Linux software but says that he provides it and will test the modem for Unix. Iam at Miller Liverpool Sydney.