Re: list files but not directory
> > > > ]$ find . -maxdepth 1 -type f ! -name '.*' > > or, > > ]$ find . -maxdepth 1 -type f ! -regex '^.*/\..*' > > or, > > ]$ ls -hl | grep ^- > > This works fine but there is ./file as result How can remove ./ in the command also? > > And I am sure there are a dozen seperate perl > solutions out there! > > > Any of those would make a good function with a name that is > easy to > remember so you don't have to remember the complicated > command. > > > And on and on. Count the learning curves and > side issues involved for > > someone who just wants to see some text file that they > wrote and saved > > and that has seemed to 'disappear'. That kind of > thing happens at the > > start all the time. > > > > Let me tell you about unnecessary learning > curves. About 5 years ago, > > when I installed Linux for the first time, I > tentatively began to > > explore the Gnome desktop and menu. > > God, I have been at this longer then I thought. My use of > Linux > predates the Gnome desktop... > > > I saw Vi(m) -- a text editor. > > Thinking of M$ NotePad, I opened Vim in order to make > my first notes to > > myself about this new operating system. I > couldn't write a word (I > > didn't know about insert mode) and, determined not to > solve problems by > > just rebooting, it took me 4 -- let me repeat -- four > hours to get out > > of Vim. (Who would of thunk of escaping to normal mode > and inputing a > > ':' to get to a command line.) > > > Yes, you should never try to use vi for the first time > without a > cheat sheet! For that matter, I normally set EDITOR so I > get the > editor of my choice by default instead of vi. (Another > thing new > users do not know about...) > > > Most new users have already spent a considerable > amount of time trying > > to do the simplest thing before posting on users help > list for the first > > time out of fear of looking really really > stupid. Suggesting stuff like > > "]$ find . -maxdepth 1 -type f ! -name '.*'" or > "'ls -hl | grep ^-' > > just leaves their brains reeling. Particularly when > they are in the > > midst of trying to figure out how 10 to 20 other > things work. > > > Yes, it would be better to give an explanation along with > the > command. Some people do this better, and more consistently > then others. > > Mikkel > -- > > Do not meddle in the affairs of dragons, > for thou art crunchy and taste good with Ketchup! > > > -Inline Attachment Follows- > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: list files but not directory
--- On Sun, 8/23/09, Mikkel L. Ellertson wrote: > From: Mikkel L. Ellertson > Subject: Re: list files but not directory > To: "Community assistance, encouragement, and advice for using Fedora." > > Received: Sunday, August 23, 2009, 12:26 PM > Steven W. Orr wrote: > > > > Two things! > > > > 1. Bash syntax: > > This will not work: > > function lsp() { ls $@ && less } > > If you do it in one line then it would have to be > > function lsp() { ls $@ && less; } > > > Yes - I did forget the ; at the end of the command. Bad > morning... > > > If you say ls && less then you will only run > the less command if the ls > > command succeeds with a 0 exit status. I know this was > a typo but I just > > didn't want others to get confused. > > > I prefer not to have less run id ls exits with an error. > That way, > if I run something like lsd *.html on a directory with no > .html Why I can't run lsd? Do I need to install any package? -bash: lsd: command not found > files in it, I do not have to type the q to exit less. > > > *NEVER* use $@ without using double quotes. It is very > bad luck and failure to > > follow this advise will cause you to send 200 copies > of stupid jokes to all > > the people you know with aol addresses. And worse, you > will end up knowing > > more aol people. > > > Oops - definitely a good point! > > > What's the difference between an alias and a function? > Simple: If you need to > > pass arguments then use a function. I mention this > because it's another of > > those basic sources of confusion. > > > I nice explanation. > > Mikkel > -- > > Do not meddle in the affairs of dragons, > for thou art crunchy and taste good with Ketchup! > > > -Inline Attachment Follows- > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines __ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: list files but not directory
Thank you for all help I am using fedora 10 but ls -z doesn't work to me! --- On Fri, 8/21/09, William Case wrote: > From: William Case > Subject: Re: list files but not directory > To: "Community assistance, encouragement, and advice for using Fedora." > > Received: Friday, August 21, 2009, 1:51 PM > Hi; > > On Fri, 2009-08-21 at 18:12 +0100, Albert Graham wrote: > > On 08/21/2009 03:35 PM, William Case wrote: > > > > Now that I am familiar with 'find' and 'grep' > etc. I no longer worry > > > about it. However, 'ls' is probably the > first commandline command a > > > beginner learns. It seems illogical, that > 'ls' wouldn't have a flag > > > that just shows files when it has a flag for > directories. It can cost > > > newbies hours looking for a solution that isn't > there. > > > > > > > > > Couldn't the shell maintainers just add an > appropriate flag to show > > > files only? > > > > > > > > > > It would probably be easier to hack the ls source and > extend the -A > > functionality. > > Perhaps. But in the end, it is not something I NEED > now. But when I > read the original post I thought back to my first days > using Linux. It > was a chore figuring out what the color code for files etc. > meant, or > what the identifying symbols where for etc. when all I > wanted was to see > if my disappearing file was in which directory. It > was, to say the > least, unnecessarily frustrating at the time. > > A clean uncomplicated list of files would have been useful > back then. > > I would think something like the following would be > useful: > > ]$ ls -z would show a list of just the files in the current > directory > similar to the way 'ls' shows an unadorned list of > directory contents. > > ('-z' is not a good mnemonic choice for "files" but seems > to be > available as an option/flag.) > > -z should have the property of being able to combine with > other ls > options > > eg > ]$ ls -za -- to show dot files as well, or, > ]$ ls -zl -- to show long list format of just files, or, > ]$ ls -zlA /some/other/directory's/files/ -- to show long > list format of > all files in a directory other than the current directory. > > Without hacking ls -A, but by writing "alias lsf='ls > -hl | grep ^-'" to > bashrc, lsf works well enough for the current > directory. I still think > an addition to the options available in 'ls' would be > helpful. > > I am just wondering if this has been requested before or if > this is a > request for enhancement that would not be entertained by > the maintainers > of coreutils. > > > -- > Regards Bill > Fedora 11, Gnome 2.26.3 > Evo.2.26.3, Emacs 23.1.1 > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines > __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: list files but not directory
ls -1 but I only want the file to list not directory thank you --- On Fri, 8/21/09, Todd Zullinger wrote: > From: Todd Zullinger > Subject: Re: list files but not directory > To: fedora-list@redhat.com > Received: Friday, August 21, 2009, 8:02 AM > ann kok wrote: > > any way to list files but not directory > > Could you be more specific about what you want? > > Possible solutions might be using 'ls -d' or 'find -type f' > but it's > hard to say without knowing what you're trying to do. > > -- > Todd OpenPGP -> KeyID: > 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp > ~~ > Stenderup's Law: The sooner you fall behind, the more > time you will > have to catch up. > > > -Inline Attachment Follows- > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
list files but not directory
Hi any way to list files but not directory Thank you __ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
xen vs virtual-box
hi all anyone have experience about vps which one is better? xen vs virtual-box thank you __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
vsftp - selinux?
Hi I have problem using vsftp. I can login ftp but can't upload file in the message log, there is Aug 20 21:03:21 ftp kernel: type=1400 audit(1250773401.299:10): avc: denied { read } for pid=31408 comm="vsftpd" name="pierre" dev=sda2 ino=933889 scontext=unconfined_u:system_r:ftpd_t:s0 tcontext=system_u:object_r:user_home_dir_t:s0 tclass=dir I have to set selinux to disable why? how can I fix it? Thank you __ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Kazaa
Hi ntop is showing this application using 20M spike but I don't know how to check it What is the service of this application? eg: netstat -anp Thank you --- On Sat, 4/4/09, Bruno Wolff III wrote: > From: Bruno Wolff III > Subject: Re: Kazaa > To: "chloe K" > Cc: fedora-list@redhat.com > Received: Saturday, April 4, 2009, 3:30 PM > On Sat, Apr 04, 2009 at 15:03:47 > -0400, > chloe K > wrote: > > Hi > > > > How can I check this application, > Kazaa? > > Check it for what? > > Are you sure you even want to use kazaa for whatever you > are really doing? > (You could be just researching Kazaa, but most likely you > have something > else you wanted to do and you thought Kazaa might be the > solution. There > could be other better solutions for whatever that is, but > its hard for > us to help you if you don't tell us what you're really > trying to do.) > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines > __ Connect with friends from any web browser - no download required.. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
postgresql help - administrator user pw?
Hi Anyone familair to postgresql Can I know how to set the pw for the administrator user? I do try to check the google and posgrssql website but don't understand it by default, the postgresql doesn't need pw but Now I am trying to install software which needs to provide postgresql database info After I fill the postgresql administrator user as postgres, the next step is pw of the administrator user. I give it "Enter" as this user is empty pw but it won't let me passing next step! The installation step is command line eg: first db user: then db pw: then db name: then db administrator db then db administraotr pw Thank you for your help __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
can nat work in vlan
Hi I want to configure 802.1q 3 vlans eg: 192.168.1.0/24 vlan2 192.168.2.0/24 vlan3 can nat work in those vlan? how does it map? ls it iptables --append FORWARD --in-interface eth1.2 -j ACCEPT iptables --append FORWARD --in-interface eth1.3 -j ACCEPT Thank you __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
dmesg: any idea about this ssh error
Hi any idea about this ssh error in dmesg? How to fix it? __ratelimit: 13 callbacks suppressed sshd[12827]: segfault at 0 ip 08048f03 sp bf97ca00 error 4 in sshd[8048000+c5000] Thank you __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
disk full
Hi What is the quick / easy way to find out which files in / to make the HD space full? Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda10 1004024983848 0 100% / /dev/sda9 1004024 17676935344 2% /opt /dev/sda6 2016016 35840 1877764 2% /tmp /dev/sda5 5036284 2622816 2157636 55% /usr /dev/sda3 5036316452808 4327676 10% /var /dev/sda2 19322896176204 18165124 1% /home /dev/sda1 1004024 37536915484 4% /boot tmpfs 110680 0110680 0% /dev/shm Thank you __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
DNS query
Hi I run nslookup to check my dns other domain gets eg: Non-authoritative answer: domain.com nameserver = ns.domain.com. domain.com nameserver = ns2.domain.com. Authoritative answers can be found from: ns.domain.com internet address = 111.222.333.222 ns2.domain.com internet address = 111.222.333.444 but my domain gets this one but not "ns.my.com internet address = ipaddress" ls it fine? and why? Non-authoritative answer: my.com nameserver = ns.my.com. my.com nameserver = ns2.my.com. Authoritative answers can be found from: __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: hardware question
Thank you But I have problem here I am using fedora3 but doesn't have this package How can I get the lshw source to recompile it? or other way to do it --- On Wed, 1/14/09, Patrick O'Callaghan wrote: > From: Patrick O'Callaghan > Subject: Re: hardware question > To: "Community assistance, encouragement, and advice for using Fedora." > > Date: Wednesday, January 14, 2009, 8:47 PM > On Thu, Jan 15, 2009 at 8:10 AM, Claude Jones > wrote: > > On Wednesday 14 January 2009 07:01:39 ann kok wrote: > >> Hi > >> > >> How can I know the hardware info eg: type of > memory > >> No need to turn off the machine > >> > >> Thank you > > > > If you're running the KDE desktop, run kinfocenter > in the system menu - it's a > > very nicely organized GUI display of your system > > AFAIK the Memory tab in Kinfocenter only gives memory > usage. The OP > wanted to know about memory type. I use "lshw" > for this (or "lshw -X" > for a clickable GUI version). > > poc > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: > https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: > http://fedoraproject.org/wiki/Communicate/MailingListGuidelines -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
hardware question
Hi How can I know the hardware info eg: type of memory No need to turn off the machine Thank you -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
warning message when starting mysql in fedora10
Hi all I got the warning message in fedora10. ls it ok? mysqld start Initializing MySQL database: Installing MySQL system tables... 081208 16:24:05 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295 081208 16:24:05 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295 OK Filling help tables... 081208 16:24:05 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295 081208 16:24:05 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295 OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
security question in apache doc root
Hi When I do config /home/user/html/a.html as apache doc root, there is permission issue when I visit to http://website/a.html I have to change the permission 755 in this folder /home/user This will have security issue as the original permission is 700 /home/user How can I prevent it? Thank you __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: mysql
Hi Thank you so much Now the warning has gone after adding two lines I check the master with "show master status" the file column record is changed from mysqld-bin.02 to mysqld-bin.01 The slave should have to make change "change master to master_host = "192.168.0.2", master_user="user", master_password="password", master_log_file="mysqld-bin.01", master_log_pos=98;" Can you tell me why? Do I need to change everytime in slave when I start and stop mysql in master? Thank you --- On Sat, 12/6/08, Gordon Messmer <[EMAIL PROTECTED]> wrote: > From: Gordon Messmer <[EMAIL PROTECTED]> > Subject: Re: mysql > To: [EMAIL PROTECTED], "Community assistance, encouragement, and advice for > using Fedora." > Received: Saturday, December 6, 2008, 10:53 AM > ann kok wrote: > > I configure the mysql replication but got this warning > > How can I fix this problem? > ... > > [Warning] No argument was provided to --log-bin, and > --log-bin-index was not used; so replication may break when > this MySQL server acts as a master and has his hostname > changed!! Please use > '--log-bin=/var/run/mysqld/mysqld-bin' to avoid this > problem. > > Edit /etc/my.cnf and put a couple of lines in the [mysqld] > section like: > > log-bin = mysqld-bin > relay-log = mysqld-relay-bin __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
mysql question
Hi All Can I know what is the meaning of the position? Why there is nothing in the "Binlog_Ignore_DB" mysql> show master status; +---+--+---+--+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +---+--+---+--+ | mysqld-bin.06 | 183219 | dbname,dbname | | +---+--+---+--+ Thank you __ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
mysql
Hi I configure the mysql replication but got this warning How can I fix this problem? Thank you [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=/var/run/mysqld/mysqld-bin' to avoid this problem. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
linux distribution
Hi all what is the different between fedora and gentee Thank you for your help -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list