<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Recently Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/recently/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/recently/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:29:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Recovering a Recently opended deleted files</title>
		<link>https://www.scmgalaxy.com/tutorials/recovering-a-recently-opended-deleted-files/</link>
					<comments>https://www.scmgalaxy.com/tutorials/recovering-a-recently-opended-deleted-files/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 07 Dec 2017 13:00:51 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Recently]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2196</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Recovering a Recently opended deleted files Recovering a Recently opended deleted files By using lsof, you [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/recovering-a-recently-opended-deleted-files/">Recovering a Recently opended deleted files</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Recovering a Recently opended deleted files</strong><br />
Recovering a Recently opended deleted files<br />
By using lsof, you can recover a deleted file that was opened already. This comes very handy when attacker gain access to the systems and has executed commands or has done some configuration changes, and then removes the log file(s) to erase evidence. A sysadmin can use this method to recover the filles which has been opened by some processess to check what all the hacker has changed.</p>
<p>The lsof &#8211; list open file is the command used for this:</p>
<p>lsof | grep &#8220;syslog&#8221; (List processess which has this file opened)</p>
<p>rsyslog	998	root	1w	REG	8,3	141400	1237857	/var/log/syslog</p>
<p>Here the process 990 (PID) has opened the file &#8216;/var/log/syslog&#8217; with the descriptor a &#8216;1&#8217;(1W).</p>
<p>To recover the content of the file, just run the following commands&#8230;</p>
<p>cat /proc/990/fd/1 > syslog.safe</p>
<p>you will have the content of the file stored in syslog.safe<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/recovering-a-recently-opended-deleted-files/">Recovering a Recently opended deleted files</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/recovering-a-recently-opended-deleted-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
