No. The kernel can close only one FD at a time, and bash does not have "group commands" for FDs.

for fd in $(ls -1 /proc/27343/fd); do echo exec "$fd&gt;&amp;-"; done


Remove the echo after testing.

If this is not for the shell itself but for a command to be run then you can use nohup.

Close all file descriptors in bash
By default, a tenant (1) can only create 10 security groups (2). Is there any reason to keep this number so low?

(1) http://docs.openstack.org/grizzly/openstack-compute/admin/content//users-and-projects.html:


  Legacy terminology: earlier versions of OpenStack used the term
  "project" instead of "tenant".


(2) http://docs.openstack.org/user-guide-admin/content/cli_set_quotas.html:

$ nova quota-defaults
+-----------------------------+-------+
| Quota                       | Limit |
+-----------------------------+-------+
| instances                   | 10    |
| cores                       | 20    |
| ram                         | 51200 |
| floating_ips                | 10    |
| fixed_ips                   | -1    |
| metadata_items              | 128   |
| injected_files              | 5     |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes    | 255   |
| key_pairs                   | 100   |
| security_groups             | 10    |
| security_group_rules        | 20    |
+-----------------------------+-------+

