LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2017, 05:23 PM   #1
killingthemonkey
Member
 
Registered: Mar 2011
Location: Winston-Salem, NC
Distribution: Fedora, CentOS, Linux Mint
Posts: 181

Rep: Reputation: 19
CentOS 7 - Root Directory - 1 File


Next weird linux newbie question.

I was poking around and found myself in the / directory. I noticed something I've never seen before, a 1 file. Yep, a file named 1. cat the file and get no output. Open it with ViM and it's apparently empty. rm -rf without sudo and permission denied.

Is there any way to know where it came from, and/or what it is for?

Thanks,
Doug
 
Old 02-18-2017, 07:19 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I am betting this was caused by a mistake something like... >/1 instead of 2>&1 or something, Sounds plausible to me atleast.

Anyways the "stat" command will tell you the when of when it was last accessed and last modified.
 
Old 02-18-2017, 10:16 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
fwiw, I just looked on a Centos 7.2 computer I have running 24x7, and also had a 0 byte file named 1, dated some time in December. I suspect there is a minor bug in some software somewhere creating this file by accident, or maybe a bug in a yum update package script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash ./configure : No such file or directory CENTOS 6.4 ankit_swarnkar Linux - Newbie 2 07-01-2016 12:32 PM
[SOLVED] Invoke root directory owner/group while moving file/directory yogesh_attarde Linux - Security 5 04-15-2014 12:36 AM
How-To Delete File/Directory in CentOS console tyyp88 Linux - Newbie 13 12-15-2013 08:35 AM
chroot:cannot change root directory to: No such file directory janakiramulu Linux From Scratch 5 04-23-2011 02:00 AM
How Do I Do a Secure FTP of a File to the root Directory on CentOS ssmela Linux - General 1 11-02-2010 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration