Questions tagged [directory]
A directory, also commonly called a folder, is a filesystem object used for organizing files and other directories.
684
questions
1
vote
4
answers
19k
views
/etc/hosts redirecting domain to localhost/directory [closed]
In this example i'm trying to force test.com to load localhost/project
127.0.0.1/project test.com
However it doesn't work.
127.0.0.1 test.com
The above works, but I really need it to go to /...
1
vote
2
answers
4k
views
revert chmod 777 / -R
while executing a command i made a mistake and executed (ubuntu 10)
sudo chmod 777 / -R # okay you may laugh
now all my filesystem has 777 permitions , obviously i dont know which ...
1
vote
3
answers
3k
views
Deleting all folders older than a specified date, except some of them
i had to do a script job in bash to delete all directory in a path which are older than a specified date except some of them.
i know the name of the directories which shouldn't be deleted...
Can you ...
1
vote
3
answers
2k
views
How to add Command Prompt Here to a folder context menu in Windows 2003?
I am doing quite a bit of work at the command line and recently started having to do it on a Windows 2003 box.
I can't figure out how to add a Command Prompt Here to a folder context menu. And ...
1
vote
2
answers
6k
views
Command-Line folder structure on Windows
I need to create a folder structure via command line, structure is as follows :
username > folder1 > folder2 > folder3 (and there are subdirectories within these folders as well)
This is a windows ...
1
vote
3
answers
427
views
Is it possible to redirect to another geographically separate server based on folder-name in URL?
What I'm looking for is to direct visitors to geographically separate servers based on their choice of language.
Our URLs are structured like mydomain.com/en and mydomain.com/th (Thai). As on now ...
1
vote
2
answers
504
views
linux: share directory between different users
i need to have this directory, which is created under FTP User1:
/home/User1/public_html/jobs_html
readable by a different FTP user, call them User2 ...
ie, when logged in thru SSH under User2, '...
1
vote
4
answers
376
views
Can someone explain a bit about Unix folder permissions and safety?
Why would I change folder permissions to 755 or 777 for example?
I read that it means read write and execute but what I want to know, can anyone steal php codes depending on these permissions?
Thank ...
1
vote
2
answers
251
views
Common /home for a couple of Linux distributions
I want to learn one more Linux distribution. I'm serious and "one more" means the second one. I've been using a Linux distribution for almost a decade, I like it very much, but I want to learn ...
1
vote
5
answers
15k
views
path separator in php
I'm a Windows user and here is my sample code:
<?php
echo "Current directory is: " . realpath(".");
?>
Output: Current directory is: C:\wamp\www\test
Actually, I want to return the path in ...
1
vote
4
answers
13k
views
Can't start MYSQL after changing directories
So I started running out of space on my linux hard disk. I added another hard drive and now I want to change the MySQL directories. So instead of saving the data into the old hard drive, it saves it ...
1
vote
1
answer
376
views
Replacing directories that are subversion-monitored
We're trying to update an installed software which we have under control by subversion. The update instructions for the software require replacing several directories that have .svn directories in ...
1
vote
6
answers
2k
views
Delete files from directory: memory exhausted
This question is a logical continuation of How can I delete all files from a directory when it reports "Argument list too long"
I have
drwxr-xr-x 2 doreshkin doreshkin 198291456 Apr 6 21:...
1
vote
1
answer
16k
views
How to write a dos batch script to create a folder structure?
I would like to be able to have a dos batch script that I could utilize to create a specific folder structure below what ever directory I may be in at any given time.
The specific folder structure ...
1
vote
1
answer
301
views
Is it possible to set up an alias on an Active Directory domain controller Linux server? [closed]
We have a Red Hat Enterprise based Linux distro that is the domain controller for a bunch of Win 10 clients. Some clients are not in the right AD domain (they are on a former domain that was used ...
1
vote
3
answers
1k
views
Solaris 11 find empty folders (-empty not work)
How to find empty dir and delete in Solaris 11.
I try this:
find . -type d -empty
Output:
find: bad option -empty
find: [-H | -L] path-list predicate-list
1
vote
1
answer
5k
views
Shared folder, deny user from deleting files
I have a shared folder in my network under windows server 2012 r2, I have 1 user that I would like to deny him from deleting any files on the folder.
The problem is that he is part of a group that has ...
1
vote
1
answer
760
views
Apache Redirecting All Sub directory Sub Folders Back to Root Directory [closed]
I have a website stored in a root folder. example.com correctly brings me to the website stored in /var/www/mainsite. I want to put multiple websites in sub folders. so example.com/website1, ..2, ..3 ...
1
vote
1
answer
3k
views
Nginx Password Protect Entire Port Number 8081
I'm trying to password protect an entire port on my website--https://domain.com:8081 and http://domain.com:8081
I have tried editing /etc/nginx/sites-enabled/domain.com.vhost by adding the following ...
1
vote
1
answer
1k
views
Apache Server - Subdirectory on different server [closed]
You have 2 different servers with different IP Addresses. Both servers are Apache based.
Server A: already hosts a website (http://example.com)
Server B: would host a WordPress website to be in a ...
1
vote
1
answer
1k
views
centos6 lost '/etc/pki/tls/' folder
I am trying to learn how to install ssl_mod, but with some wrong operation, I lost /etc/pki/tls/ folder. I am trying to yum remove mod_ssl, yum install mod_ssl, but still can not create anything ...
1
vote
1
answer
54
views
How to setup usernames for websites
I have a news server. It may be possible that there will be multiple virtual hosts on it.
There are two approaches that I see around.
One is to login as root and create files under /www/etc, Like;
/...
1
vote
1
answer
98
views
Best way to introduce a new 2008R2 Domain Controller into a Domain to replace an existing 2003 DC
This should be an easy one for some of you guys with DC and AD experience.
I am introducing a new DC running 2008R2 to replace a DC I have running 2003. I have run through all the set up and I have ...
1
vote
1
answer
1k
views
mod_rewrite redirects for site root and subdirectory from HTTP to SSL
Ok, so I have two sites within the same webroot — the main site (in the root) and an unrelated bunch of files in a subdirectory. We would like both of these sites to force rendering under SSL.
At the ...
1
vote
1
answer
733
views
Starting Apache as a NON-Root User on Localhost
I want to start an Apache 2 server on localhost:8080 on an as-needed basis without superuser permissions, with the root directory for web content being /home/user/example/web/directory. I don't want ...
1
vote
2
answers
2k
views
How to lock down a folder for an administrator?
In a windows 2008 R2 server with multiple administrator accounts,
is it possible to create private folders (one per admin) in one drive that the other administrators cannot unlock (gain access to)?
I ...
1
vote
2
answers
157
views
Directory in Linux(ext3) with only 2 files occupies 32000 blocks(16Mbytes)
IIRC my Operating Systems classes, the size of a directory in Linux is given by the number of files it contains([wikipedia link])1
So, why a directory with only 2 files occupies 32000 blocks?
# stat ...
1
vote
2
answers
811
views
Move content of one folder to another
I Have a directory say abc in var/www/ on my server
Now i want to move all the content of abc/ directory to var/www/
What will the linux command for this. New bie in linux
1
vote
3
answers
3k
views
Moving mysql datadir not working? Problems with symlink in conf.d?
I wanted to have my mysql config in svn to be versionised so i did thefollowing:
ubuntu@ip-10-226-50-211:~/mysql-config$ ls -la /etc/mysql/conf.d/
total 12
drwxr-xr-x 2 root root 4096 2011-01-27 11:...
1
vote
2
answers
1k
views
OpenVZ file system
OpenVZ file system (simfs) has a limit of files per folder.
We reached that limit and we are in trouble...
Which is the best approach to this problem?
Thank's in advance!
1
vote
2
answers
2k
views
Fast directory delete on AIX
I have an extremely large directory (containing millions of files summing up to 150 GB) which I want to delete.
Is there a faster method than using rm -rf which takes ages to complete on this ...
1
vote
3
answers
5k
views
Point domain name to subdirectory with .htaccess
I have a server under one main domain, and I want to point another domain to /example/index.php to make another site.
Is there anyway i can do this with .htaccess?
cheers
1
vote
1
answer
95
views
Ridiculous Number of Files in a Directory
My employer acquired a company with one particular piece of software that stores a lot of PDF and PNG file files in one directory. When I first replicated it from AWS, there were about 11.5 million ...
1
vote
1
answer
2k
views
Conditional Forwarder or DNS Stub Zone to Non-Authoritative DNS Zone
How could I go about forwarding DNS lookups to a non-authorative zone, in a sort of 'next hop' scenario?
The setups is as follows:
One ADDS Domain (contosob.local) which contains two DNS servers, ...
1
vote
1
answer
100
views
XFS Folder Dates
I have a server running Centos 7, kernel 3.10.0-514.16.1.el7.x86_64, Samba 4.5.2, and XFS. We archive documents in a bunch of small .tif files, so XFS works great for us. The folder is mounted in ...
1
vote
2
answers
174
views
Windows network folder directory list inconsistent when viewed from two different client machines
I am on a corporate network using Windows. There is a network share provided by a NetApp appliance. When I log on to two different machines and view the network drive, I see inconsistent directory ...
1
vote
1
answer
136
views
DropBox style folder storage
I would like to set up a storage for people to access. So like I have a network set up with 1 domain controller and a back up server as well and I have user accounts set up in AD and basically I want ...
1
vote
1
answer
2k
views
Can I safely remove _vti folders added by my host or cpanel? [closed]
I notice user accounts on my cpanel server came with some _vti folders installed by default.
_vti_bin
_vti_cnf
_vti_log
vti_pvt
_vti_txt
_private
As I understand these are some kind of Front Page ...
1
vote
1
answer
2k
views
Domain mapping subdirectory to external domain
I'm running a Wordpress multisite install where the blogs are created in subdirectories - e.g. www.mydomain.com/blog1, www.mydomain.com/blog2
I need to clarify what I think is and isn't possible with ...
1
vote
1
answer
3k
views
how can I set all folders to show file version at an OS level?
I'm managing a lot of dll's and one thing I have to do constantly when copying them around is to turn on the file version attribute display in the folder where my dll's are. I'd like to set this ...
1
vote
2
answers
794
views
postfix sort mails using a cronjob
My mailserver consists of dovecot and postfix.
I am receiving alot of mails from different mailing lists. These mails should directly go into my inbox when they come in, because it is easier to ...
1
vote
2
answers
268
views
Run command to untar file in timestamped folder?
I have a .tar file that is transferred to our server every night by one of our client management systems. The file is a compressed .sql file which I need to uncompress and dump into our database.
The ...
1
vote
1
answer
2k
views
Recover NTFS deleted folder
My client accidently deleted a folder under a Server 2008 shared folder which permanently deleted it.
Does Windows offer some sort of restore for deleted files/folders? Or is there a good reliable ...
1
vote
1
answer
263
views
Relative path incorrect in the view layer when hosting a rails3 app in a subdirectory using passenger and apache
I want to host multiple Rails apps on a multiple server using sub-directories.
And have encountered some relative path problems.
I have made a symbolic link to the app's public directory and placed ...
1
vote
2
answers
4k
views
Combine several locations with regex in nginx
I dynamic number of Joomla installations in subfolders of the domain.
For example:
http://site/joomla_1/
http://site/joomla_2/
http://site/joomla_3/
...
Currently I have the ...
1
vote
3
answers
781
views
/var and /home folders clogged up on cPanel (Linux)
Recently the /var and /home folders have been clogging up on my server and I received a 'critical error' email saying that the /home folder was 100% full. I managed to fix it using the LVExtend ...
1
vote
1
answer
690
views
Wordpress htaccess redirect destroys my non-www to www redirect
In my root domain I have an .htaccess to redirect non-www to the www, and to redirect to a subdirectory (containing a temporary website). This is done using the following code:
Options +...
1
vote
2
answers
4k
views
Change the document root of a parked domain?
I have run into a problem which is that my web host doesn't appear offer addon domains.
I currently have a domain name pointing to my name servers.
I went into cPanel to add an addon domain that ...
1
vote
2
answers
2k
views
how to restore a mysql dump FOLDER
After having a vps crash, I asked my hosting to give me the dumped file of my drupal database. It is a folder filled with of *.frm *.MYD files of the database tables. I used to restore mydb.sql files ...
1
vote
1
answer
478
views
du -sh keeps timing out!
i need to get the entire size of /storage, but using du -sh times out after about an hour! is there another way to get the entire directory size?