Wallpapers Forums Login

Show To Display Print Hidden Files Linux Unix Command

To show hidden files in UNIX/Linux, execute this shell command:

CODE:
ls -a
surendra Tue Mar 27, 2012
what is meaing . and ..
akbar Sat Feb 25, 2012
I can view hidden files through the command ls -a , but how to open hidden files?
ronak Sun Feb 19, 2012
ls -a | grep "^\."

this cmd is sawing hidden fils
My2Cents Tue Jan 10, 2012
Most of the hidden files are text files so any text editor like "vim" or "nano" will display the text to you. You can also use the command
"cat .foofile | less" to see it displayed within console.
freeb Sun Dec 25, 2011
ls -lrt .*
linux Mon Oct 31, 2011
ls -A
via the manpage: "do not list implied . and .."
lists all files and folders in the directory

ls -A | grep "^\."
lists only hidden files and folders

ls -A --file-type | grep "/$" | grep "^\."
lists only hidden directories

ls -A --file-type | grep -v "/$" | grep "^\."
lists only hidden files
aswini Mon Oct 17, 2011
ls -a|grep "^\."
this command is not working
Subbareddy Tue Aug 02, 2011
ls -a|grep "^\."
Abhijit Wed Jun 01, 2011
I have created a few files using windows and hidden those. Now I am trying to run UBANTU from Virtual Machine and want to use the commands to see the hinned files only. ls - a is not working. It gives files without "dot" even if this is hidden. Please suggest
Arvind Wed May 11, 2011
11-322-photo05351.jpg
 sub dir {
        
        my $ftpdir=shift;
	#$my $current_folder = shift;
	my  @ all;

	chdir($ftpdir) or die("Cannot access folder $ftpdir");

	#Get the all files and folders in the given directory.
	my  @ both = glob("*");

	my  @ folders;
	foreach my $items ( @ both) {
		if(-d $items) { #Get all folders into another array - so that first the files will appear and then the folders.
			push( @ folders else { #If it is a file just put it into the final array.
			push( @ all,$item my $this_folder ( @ folders) {
		#Add the directory name to the return list - comment the next line if you don't want this feature.
		push( @ all,"$th calling this function for all the folders
		my $full_path = "$ftpdir/$this_folder";

  @ deep_items = dir($full_path); # :RECURSION:
		foreach my $items ( @ deep_items) {
			push( @ all,"$this_fol  @ all;
        }

        my  @ all  = dir("/home/systems/test")        foreach my $items ( @ all) { 
	print "--- $items ---\n";
         }
 
this code helps to find all directory files..............
felise Tue Apr 26, 2011
how to use the grep command to search all the hidden files in the home directory
b Tue Dec 28, 2010
Hi...frnd u r asking how to see a hidden file in linux

Ans: ls -a
this is only to see the hidden file ok.
bye...
nallavan Fri Dec 24, 2010
unix onnume purila :-) ithai kandavan evan :-) patthavudan reply panavum illaenil shutdown panavum endrum arivudan
arivalagan
jmartin Thu Oct 28, 2010
this command saved my butt... and my Virtual Machines
Niranjan Sun Sep 26, 2010
show hidden file in unix you can use this command
ls -all

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5