Ubuntu :: Cut Command Netcat - View The Foreign Ip Addresses?
Dec 28, 2010
So I opened a terminal and fired up netcat.I only wanted to view the Foreign Ip Addresses so I used
Code:
netstat --tcp --numeric | cut -c 45-65
and that gave me[code]...
There are two things that I am trying to accomplish here. The first is that I would like to "cut" the first three horizontal lines so that the output is only ip addresses.I tried tail but the number of different IPs changes so it still gives me those top lines. I tried head but that doesn't seem to give me any output at all.The second thing I would like to do is to filter out duplicate values. For example the output above has 2 duplicate entries of 66.102.7.101:80
View 5 Replies
ADVERTISEMENT
May 16, 2011
Is there an utility out there which allows to check LBA(Logical block addressing) addresses mappings to user data? Or for example how to view the LBA addresses under certain partition? Is this possible at all?
View 2 Replies
View Related
Feb 14, 2010
My server is currently copying a large amount of date. I periodically check how much has already been copied by using the "ls" command in the destination folder. Is there a way so that ls kind of self updates itself? Like in a log or so? Or like when using cp -v?
View 9 Replies
View Related
May 20, 2010
I've been using Emacs with the AUCTeX package to edit and compile my .tex documents lately, but there's something that's been bugging me. First, here is the short question:How can I costumize the default view command emacs runs when I type C^c C^c <enter>?I've read that it's done with the tex-view-dvi-command variable, but I've had no luck getting it to work at all.Now the explanation:It bugs me that whenever I type C^c C^c to compile, and then C^c C^c to view dvi, emacs doesn't automatically give focus to the dvi viewer (xdvi). Digging a little, I found out that the command "wmctrl -a main" gives focus to xdvi ("main" is the title of the xdvi window). So, if I can only customize AUCTeX's standard view command to include "&& wmctrl -a main" at the end, than my problem would be solved
View 2 Replies
View Related
Feb 4, 2011
What is the command to view HBA information?
View 2 Replies
View Related
Dec 22, 2010
I want to see files and directories which are in /etc directoty. When i write # ls command it scroll all files at a once and i can't see the files whic starts from a or b .Is there any combination in ls command by which i can view files as per page by pressing spacebar of enter key to see next files.
View 4 Replies
View Related
Jan 28, 2010
I am searching a GUI based "tree view utility" which shows me which directories consume how much hard disc space (cumulative, including recursively the sub directories; including hidden files). Is there such a tool fur Ubuntu/Linux and how do I install it? Is there at least a cmdline command which does the same job in terminal window?
View 1 Replies
View Related
Mar 11, 2011
I was curious if I would be able to view cookies from a command prompt when ssh'd into a machine. On a test machine running fedora 13, I found that the cookies were stored in a cookies.sqlite. I made sure that all instances of Firefox was closed and attempted to view the file running the following command
sqlite3 cookies.sqlite
It loaded but I was unable to run view any of the information because the database was locked? There were no instances of Firefox running and I check to make sure there were no services of Firefox running as well. Am I doing something wrong? Is this not the correct way to view cookies from the command line ? I have tried google searches and has since been unable to come up with anything.
View 4 Replies
View Related
Oct 18, 2010
When I open a terminal and start the 'top' command to view the running processes, in the summary view I get 4 users. I guess that in addition to my account the root runs in the background but who are the other 2??
View 1 Replies
View Related
Mar 23, 2011
I am learning about group and user management with Fedora and can change the user's group using the usermod command but did not know if there was a command to see the group currently associated with the user.
View 3 Replies
View Related
Jun 28, 2011
I was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in Screen, but I cannot seem to find any commands that will work. I need to see the onscreen output "further up" than I can on my current screen. CTRL + a is supposed to put me into scroll mode inside Screen, but it's not working.
View 4 Replies
View Related
Jul 11, 2011
Can anybody show me how to view command history of another user? I am an admin on my machine. I can see normal history by viewing /home/user_name/.bash_history but i can't see commands of that "user_name" when they were doing sudo. Is there a way to view all command executed by one user?
View 3 Replies
View Related
Nov 9, 2010
The command used to view processes running on the Linux machine is?
View 8 Replies
View Related
Aug 8, 2010
I use vncviewer command line to remote access my pc from my notebook.
Is there any option to resize the view like windows client can by percentage?
my notebook screen size is 1280x800, while I use bigger resolution for my pc 1280x1024 if not mistaken.
already look here: http://linux.die.net/man/1/vncviewer but I don't see any option to do that.
View 9 Replies
View Related
Feb 16, 2011
Some time back I posted a question about using a Greek keyboard since I'm trying to improve my limited Greek. Someone suggested a way of switching between the English and Greek desktop for Ubuntu. I tried that but it didn't work so well so I removed it. But I just tried to use the Terminal to install something and it's all in Greek!!! Now while I can read some of it my skills are not that good and I need it back in English again... Quickly actually! How do I go about removing the Greek from my terminal? Everything else on my system is in English so I can't figure why the terminal is stuck there.
View 9 Replies
View Related
May 30, 2011
I found this IP address in my hosts.allowQuote:ALL: 119.42.68.232I cannot find any other evidence of intrusion.
View 4 Replies
View Related
Jul 8, 2010
I found out that I was trying to play foreign produced music cd's (japan) and it just won't see the cd...any way around this problem? I've tried a number of the music players but nothing.
View 8 Replies
View Related
Jun 28, 2010
How to install oracle? I have been tried many times but seems can't resolve the DISPLAY issues.
All installer requirements met.
Use the following command to view the current DISPLAY environment variable setting:
View 2 Replies
View Related
Jan 7, 2010
i'm trying to clone a hard drive using dd & netcat.
Quote:
on target:
nc -l -p 1333 |dd of=/dev/sdb
on source:
dd if=/dev/sdb |nc 192.168.0.5 1333
However after a while since the process was initiated I get a
I/O error in filesystem ("....") meta-data dev ...block 0x..... ("xfs_read_buf") error 5 buf count 512 XFS: size check 2 failed
Further digging showed that the target hard drive was less in space by 100 kb. Both are 1 T drives seagte but different models, hence the diff in space maybe.The data on the original drive is only 900 GB.
View 6 Replies
View Related
May 25, 2010
I'm trying to redirect nc command output but I can't do it.
I have tried this:
And this:
But it seems doesn't work.
View 3 Replies
View Related
Jul 27, 2010
I've tried to use netcat in the past and assumed it was my stupidity that was preventing it from working... but this is getting ridiculous. I'll execute nc -l 3333 on a server at 192.168.0.105 (after opening it on the firewall of course) then I run nc 192.168.0.105 3333 on my laptop (from 192.168.0.101). and nothing happens... i start typing and nothing comes up on the terminal.
I run nc -z 192.168.0.105 80 which should ideally do a port scan of port 80 on that server (of which I'm running a web server that clearly works) but it doesnt even give me any feedback. Nothing happens. Now when I use the verbose flag i see that I am indeed connecting to the specified port on the server successfully (so the port scan one is a success but only with the verbose flag... which shouldnt be the case I believe). But still once I have the server listening and the laptop connected... I type in both windows and nothing happens...
View 1 Replies
View Related
Oct 22, 2010
OK here's what I'm doing:
On terminal 1, I enter:
$ nc6 -vlp 5000
nc6: listening on 0.0.0.0 5000 ...
On terminal 2, I enter:
$ nc6 -v localhost 5000
nc6: ygt-asfandq (127.0.0.1) 5000 [5000] open
Now, as SOON as I make the connection on terminal 2, both netcats immediately quit back to the command prompt. The return code for both is 0.
I do not have ANYTHING in my firewall (I checked with sudo iptables -v -L)
I have attached a wireshark trace of the conversation..
View 2 Replies
View Related
Apr 23, 2010
when I'm trying to add a virtual host with a foreign character in the domain name. The foreign character is .
I've read earlier threads where it was said I should puny code it, which then translates to xn--nda
I then created a virtual host, as shown (replaced the real domain with exampl�:
Code:
<VirtualHost *:80>
ServerAdmin me@exampl�.com
ServerName exampl�.com
[Code]....
However, apache2 doesn't recognize this when I try to enter the domain, it just shows my 000default.
View 2 Replies
View Related
May 3, 2010
I only want spellchecking, calendar and currency to be typical for Poland (this is where I currently live), Ubuntu itself (interface, applications, manuals) should be in English - I don't understand Polish well enough.In 9.10 I used to check Polish spellchecking (translations were checked for install automatically but you couldn't tell unless you chose another language and then Polish again) and uncheck the translations. It allowed for setting locale (calendar/currency) to Polish and also keep the spellchecking. Now it's buggy: I can do a fresh install of Ubuntu but can't set Polish spellchecking, calendar (it starts from Monday), currency (it's PLN/zł) and keep the system itself in English. What I do wrong?
1. Fresh install
2. System -> Administration -> Language Support
3. Language -> Install / Remove Languages
4. Find Polish and select ONLY: Spellchecking and writing aids
5. Text -> Display numbers, dates and currency amounts in: Polish
Confirm, reboot and... Bump! I've got Polish translations in several places, e.g.:If I upgrade any software, it is in Polish. Firefox (or Namoroka) locale changes to "pl,en" and its plug-ins are in Polish by default.
After I uninstall Polish translations (and leave spellchecking and writing aids as it was) there's a problem with locale (Polish locale is removed along with translations), besides, system doesn't actually change back to English and newly installed applications either crash with errors or install in Polish.
View 9 Replies
View Related
May 12, 2010
Can't rename, move or delete files or folders that have a foreign character.
Code:
The file or folder /data/down/done/1999 Taraf de Ha-douks does not exist.
Kubuntu Karmic. Fails in konqueror and dolphin.
View 5 Replies
View Related
Aug 27, 2010
I want to setup my MySQL database and have MySQL up and running. I sill look for a good editor to add and configure my tables, it appears that MySQL Administrator is the only GUI client available.
But when I try to add a foreign key to one of my tables, there appears to be a problem. Both of my tables are InnoDB and both have a primary key.
-First I choose the tab "Foreign Keys" on my CLIENT table.
-Then I press the green + sign to add a foreign key, it is default named new_fk_constraint.
-I choose my table USER in the Refer.Table dropdownbox
-And then I should be able to match the FK field and the PK field in the box on the right... but this box is empty. Double clicking shows nothing. I only can drag the user_id of the USER table to it, but have no option to select the foreign column.
What the hell is wrong here??? This client is years old and should be really REALLY working IMHO! I was told by a friend that there is no good client available and therefore he is using some Windows program for this...
View 3 Replies
View Related
Oct 18, 2010
In this case its the french accented e that is getting translated:[test]$ touch dd touch: cannot touch `351dd': No such file or directory the thing is the folder test is an smb mount. The windows server which is dropping files into it is able to make the file visible but the app running on the linux can't fetch it because the name is 'unexpected'if I create a file anywhere else e.g. in /tmp/ with the name response.txt it is fine. When I ls I see r?sponse.Can you advise me if I should be looking at the smb config AND the host config and give me some pointers as to where to get started trying to solve this.
View 3 Replies
View Related
Jun 18, 2009
I am running a spam filter on debian lenny 5.1 with postfix, amavis-new, spamassassin, and clamav. It works pretty well but I would like to finish tweaking it to minimize the mail getting quarantined. It really isn't quarantining anything that isn't spam, except for an occasional list mailer. However, the quarantine is huge, and takes a while to go through. I noticed that much of the spam is coming from foreign country tld's like .cz is there anyway to have postfix run a check on the header and if the email, or smtp origination is from a server from a foreign tld have it just rejected. I can whitelist anything if need be in the future but as of now we don't do any business overseas and don't need to worry about blocking legit email.
I think this should be possible, however, I am unsure of the syntax for the file, where to put it and if wildcards are possible in domain blocking like
Code:
*.cz REJECT
View 2 Replies
View Related
Feb 9, 2010
At work they gave me the following task (and i need some help from you guys!):At work we have a normal PC running Ubuntu 9.10 (32-bit), which works good.We also have a LaCie Ethernet Disk Mini v2, which runs embedded Linux (RedHat), but is so trimmed down, you can't use the disk we would like to use it.The task is this: On the X86 machine, make a bootable image for the ARM architecture and write it to a harddisk (which fits the LaCie offc.) so it can boot off it.Now i have done some investigation, but don't know how to combine it all:
- I can use debootstrap to create a minimal Debian system, but there comes the problem, you can't chroot into a foreign created system (i.e. X86 cannot chroot into ARM system).
- I can use QEMU, which can emulate a ARM processor, but can i use the image that QEMU uses as a normal image for a harddisk, so it would boot off it (when using dd to write it to a real harddisk)?
- Current kernels support the LaCie hardware (Marvell chipset)
- I know how to use tools such as dd, so if the image is generated i can write it to disk and have the LaCie boot from it.
The LaCie box has the following: 1 ARM9 ARMv5TEJ (266 MHz) CPU with 64 Mb RAM, Gigabit network controller and 1 usb host port, internal there is a sata port obviously.The only thing i want at the moment is to have the LaCie boot Debian and i can SSH into it, from there the rest is easy as pie.Is someone willing to help me accomplish this task? It would seriously mean and help alot!If all goes well and if i get all things up and running i would like to make a Howto of it and place that here, maybe it will be of some use !
View 4 Replies
View Related
May 30, 2011
I have been working in macromedia dreamviewer for editing html and php files, Just now I moved to linux system by installing xampp , my question is that I need a best html and php editor that supports both the design view and code view as like in dreamviewer.
View 7 Replies
View Related