From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 02:29:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7AB8106564A for ; Mon, 15 Dec 2008 02:29:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 4ACF28FC19 for ; Mon, 15 Dec 2008 02:29:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl75-59.kln.forthnet.gr [77.49.122.59]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBF2Snif030207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 15 Dec 2008 04:28:54 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBF2SneX042396; Mon, 15 Dec 2008 04:28:49 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBF2SmqS042395; Mon, 15 Dec 2008 04:28:48 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Noah References: <4945BF22.7030606@enabled.com> Date: Mon, 15 Dec 2008 04:28:48 +0200 In-Reply-To: <4945BF22.7030606@enabled.com> (Noah's message of "Sun, 14 Dec 2008 18:21:22 -0800") Message-ID: <8763lm189r.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: mBF2Snif030207 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.861, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.54, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: User Questions Subject: Re: control character file names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 02:29:09 -0000 On Sun, 14 Dec 2008 18:21:22 -0800, Noah wrote: > Hi there, > > there is a blank directory that I cant seem to view. I believe the > directory is a '^M'. can somebody please explain how I can see > filenames and directories containing control characters. Also how do > I rename the directory with 'mv'? There are quite a couple of options: * Use the -B option of the `ls' utility. This should print the non-printable characters using octal numbers, i.e.: $ touch 'foo^Mbar' $ /bin/ls -lB foo* -rw-rw-r-- 1 keramida users 0 Dec 15 04:27 foo\015bar $ * Use a file manager. I often use `dired-mode' inside an Emacs session to move around, copy, re-organize, rename or delete files. Any file manager that can display several character sets at once will do fine :)