- Forums
- Linux Systems
- Show To Display Print Hidden Files Linux Unix Command
This Page Contains information about Show To Display Print Hidden Files Linux Unix Command By unix in category Linux Systems with 26 Replies. [2867], Last Updated: Sat May 18, 2024
unix
Sat Aug 26, 2006
26 Comments
52942 Visits
To show hidden files in UNIX/Linux, execute this shell command:
CODE:
ls -a
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..............https://www.wallpaperama.com/forums/show-to-display-print-hidden-files-linux-unix-command-t322.html