Tag Archives: command

Tcpdump command

How to get a nice output from the command tcpdump : # tcpdump -vv -n -tttt -i eth0 |grep 10.10.10.4 Where : vv – verbose command output, good idea if no problem is detected in standard output n – gives … Continue reading

Posted in Linux | Tagged , , | Comments Off on Tcpdump command

RHEL4U5 and tree command

I am sad to say that the tree command does not exist for RHEL4, nor is it intended for it. (See this link) Lucky for me there is a (very long) command that can simulate it. Go to the folder … Continue reading

Posted in Linux | Tagged , , | Comments Off on RHEL4U5 and tree command

Some neat Linux commands, part 4

How to TAR more than one folder at the same time, and all that is under this one folder, while preserving ownership : #tar cvfp name-of-the-new-file.tar /apsolute-path-to-folder c – create the archive v – verbose f – specify the filename … Continue reading

Posted in Linux | Tagged | Comments Off on Some neat Linux commands, part 4

List file content, a neat Linux command, part 2

How to list content of a file, but only that part which is not comments (in Linux comments always start with “#”), and to eliminate blank lines in the stdout (where comments used to be) : # less ime.fajla | … Continue reading

Posted in Linux | Tagged , | Comments Off on List file content, a neat Linux command, part 2

How to delete a large number of files under Linux, neat Linux commands, part 1

Has it ever happened to you? A VERY frustrating position, where you need to delete a very large number of files, and when you try, you get this : # rm -rf *1 “1” is a alphanumeric common for my … Continue reading

Posted in Linux | Tagged , , | Comments Off on How to delete a large number of files under Linux, neat Linux commands, part 1