Skip to content

Tag: linux

One Line FTP Server

A lot of times I used the command, which opens a temporary HTTP server on current directory: Now I need to receive files, is there any one-line command that opens a ftp server? I am simply looking for a command line ftp server, no configurations files, no daemons. I tried Twisted as in One line ftp server in …

regular expression to exclude filetypes from find

When using find command in linux, one can add a -regex flag that uses emacs regualr expressions to match. I want find to look for all files except .jar files and .ear files. what would be the regular expression in this case? Thanks Answer You don’t need a regex here. You can use find with the -name and …

Can i host multiple sites with one django installation

I have my own VPS server with Centos and cpanel/WHM Currently i am building one website in Django with djnago builin server. When site finishes then i will move to WSGI and apache I want to know that Can I host multiple sites with same django installation Also what bout apps which i have installed with pip li…

How can I exclude directories from grep -R?

I want to traverse all subdirectories, except the “node_modules” directory. Answer SOLUTION 1 (combine find and grep) The purpose of this solution is not to deal with grep performance but to show a portable solution : should also work with busybox or GNU version older than 2.5. Use find, for exclu…