Is the command "ls -d" meant for only listing directories? Because i tried it and it ALWAYS display just a blue dot. If not what is the correct way to show only directories? I.e. MSDOS equivalent "dir /ad".
list filenames one-per-line, in BASH without including directories. I think he was either wrong or making that up. There is a way to list just the names and one per line but there aren't any arguments I can find that can be used to exclude directories.
Code:
IFS=', '; files=`ls -m`; for i in $files; do if [ -f $i ]; then echo $i; fi; done That does only use ls as a command, however he said his GSI thought he could do it without all that...
Im having proftpd 1.3.3a standalone on squeeze with mysql backend. It all works fine with one little problem. When i log in to directory, there is nothing in it - knowing there is shed load of files. Directories are simply not being listed. Im logging in as group member and directory permissions are rwxr-xr-x. In addition to that when i try to create new directory connection is being lost and client attempts to reconnect. After successful reconnection, connection gets lost and over and over again until i abort.
[code]...
i find Failed binding to 0.0.0.0, port 201: Address already in use. Check the ServerType directive to ensure you are configured correctly.
suppose in my current directory, I have 50 sub-directories. Now, I am interested only in about 20 of those sub-directories (whose names match a pattern). I would like to recursively list the contents of these 20 sub-directories. How do I do that ? I would like to do this in Solaris 10 and Linux(RHEL 5.x).
Firefox opens file listing instead of Nautilus opening file listing.When I access a folder via "Places" -> "Home Folder" or "Places" -> "Downloads", Firefox opens and list the contents of the directory.I have re-installed Nautilus, un-installed Firefox and then going to "Places" -> "Home Folder" or "Places" -> "Downloads" launches Nautilus and I can view the contents normally. Anybody else had this problem with Firefox ? Anybody know how to fix this Firefox problem ?Running Ubuntu Desktop 9.10 64bit.
I would like to mount a disc that was previously used in the Intel Software Matrix RAID array (fake-raid). If I try to mount it I get:
mount: /dev/sdd1 already mounted or tempb busy
I think my dmraid is refusing to mount it beause of some RAID "flag". I would like to get rid of it, but unfortunately I cant do that on my system (theres no such RAID):
[root@ox mnt]# dmraid -r /dev/sdd ERROR: isw: Could not find disk /dev/sdd in the metadata no raid disks and with names: "/dev/sdd"
There are several posts recommending to uninstall dmraid completely from the system. Isnt there smarter solution in removing such a flag?
Is it possible to restrict users to their home directories and allow admins to have different home directories? Essentially I want users to have a folder in /var/www/html/$USER and admins to have either unrestricted access or have their root directory be ./ or /www or /etc. I have is set now so users have access to thier home direcotry but I need to upload web files as admin.
As stated , gvfs is extremely slow when browsing smb shares.Mount cifs runs in a third of the time gvfs takes.Often gvfs hangs up while listing.I've searched and see tons of noise about it but no real signal.Does anyone here have any info on gvfs as to why it's so slow browsing?"Name : gvfsArch : x86_64Version : 1.6.2"
Within the mv() command is there any way to not need to type the entire directory location? In the example there are directories with varying depths... I want to move a file from depth 2 to a directory of depth 3 when the directory of depth 3 is within the directory of depth 2. Basically, can I cp() andor mv() a file to a subdirectory without having the enter the entire directory location?
Code:
[root@xxx dir]# ls dirD1 [root@xxx dir]# cd dirD1/dirD2 [root@xxx dirD2]# ls
I am preparing for RHCE. While doing the lab I renamed /etc/grub/grub.conf as grub1.conf. Now (obviously) system boots on grub> prompt. Can I recover without using a bootable CD? Another problem that I encountered was, while doing lab for fdisk, I used command umount -al. Now, fdisk -l is not listing the partitions but giving a message:- /proc/partitions does not exist. If I reboot the system this is restored.
Is there a way to boot any current kernel without the nolapic flag on ICH8-based intel T7300 systems? This system works fine with the last 2.26 kernel from FC8, but due to EOL of the security updates I tried to install FC11 and FC10. The first sign of trouble is that their installation only works with acpi=off or nolapic options. As those options disable either fan-control or the second cpu-core I consider them undesirable. Is there a recent correctly working kernel available? Or do I have to downgrade to a distribution that uses a 2.26 kernel?
Does anyone know of a script / program that will give me a listing of all the content on my hard drive(s)? I have two drives that I keep my content on (which is re-downloadable if I lose a drive). In the event that I lose a drive, I would like to have a list that I can refer to so I know what I need to re-download again.
It would be good if it doesn't list *every* file but maybe only the relevant folders and files. For example, many folders are extracted archives of 100's of files. If it just gave me the folder name that would be better than all the files (less stuff to sift through).
i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.
I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.
I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.
I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?
I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.
for example in a directory(anish). 5 different types files 1- directory 2- .txt files 2- .sh files
like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!
I have a problem that I'm not sure how best to debug. About every other time when I boot my system, I get a condition where listing the files in /root locks up that xterm session.This can be cleared by opening another xterm window and killing the listing command. This happens on "ls -a", "find", "tar" and I think "stat" also. The locked up xterm echo's chararcters but does not respond to any control sequences. This is new with FC11.This has only been seen to happen for root. And once a system is booted with this problem it seems to persist until you get it booted without the problem.
In another forum (I each day visit a lot of them) a user was stating that you need to set a boot flag to make the root partition bootable, if you create partitions with GParted in order to install a Linux with GRUB2. Another was suggesting that, if you install Linux with GRUB2, the installer automatically sets a boot flag to the root partition to make it bootable (I don't remember the names). I neither believe the first nor the second thesis and I'm hoping that in this excellent forum some Gurus not only are saying I'm right but also give a comprehensive answer.
I tried using Nautilus - nada (under root no less). Tried using file browser (nada again) Tried going to "places" and the directory I wanted - right click, permissions won't let me change squat. The folders I want to change are shared folders on my network at home and sometimes I transfer files between computers to different places. Can't do it tho, cuz of the permissions. Is CHMOD the answer? If so, how do I do it? For instance, In terminal, I issued the command (as root) chmod 777 movies I thought this would allow any device in the house to write to this directory, but the permissions didn't change at all. So what do I have to do?
On my Ubuntu machine I simply run Nautilus as root and it allows me to do this. So what's different in Fedora?
I recently deleted some files. I would like to know are the files kept in a directory? Like in windows recycle bin. I would like to know where these files are?
I'm running Fedora Core 12 x86_64. I started out using the default bash shell (and customized the .bashrc, etc. as necessary) but had to switch to csh for this one scientific package that requires that shell.
The issue is that my $PATH has unwanted redundancy and I can't figure out how to fix it:
Code:
The csh shell was completely new to me so I'm sure I made a mistake somewhere.
Below are the files that might be relevant for diagnosing this problem. I don't think I touched /etc/csh.login or /etc/csh.cshrc but I might have accidentally done so.
How do I create a user with ftp access and/or Putty access that can only see and change certain directories. I want to create users to work on my website but I don't want them to have access to all of the folders.
o, incredibly simple problem that I am having a terrible time finding an answer to. I am trying to setup a program in Fedora to be redirected to a folder in my 64-bit Window$ partition, however I am not sure how to tell Terminal that it has a "(" and ")" in the path name.
The exact path in standard value is as follows: "/media/12842F85842F6A85/Program Files (x86)/Steam/steamapps" What SHOULD this look like in Terminal?
I want it to only display the directories in the folder, but when I use ls -d, it tells me the only directory is '.' .But, if I use ls -p it recognises the directories for what they are.