Tagged Questions
2
votes
2answers
250 views
changing colors of files/dirs in linux ls
I use putty with a black background and was wondering if there was or is a way to change the colors of the dirs which are dark blue.
i noticed
DIR_COLORS.xterm
and
DIR_COLORS
do they play this role?
...
3
votes
1answer
65 views
After emptying a directory with 60,000 small files, ls -l still shows large directory size?
Here is the ls -l after I did rm -f inside the cur and new directories.
I expected the directory "sizes" to shrink back to the default "4096".
[root@example Maildir]# pwd
...
-4
votes
1answer
78 views
linux + change/edit file without effecting on file date [closed]
I want to edit some file in my linux for example
ls -ltr /etc/some_file
-rw-r--r-- 1 root root 188 Jul 1 2010 sysstat
.
echo "Server101_IP=187.0.98.4" >> /etc/some_file
.
I ...
0
votes
1answer
256 views
linux\solaris + print specific date format from file
subject - print file date on solaris as format: yymmdd ( yy - year , mm - month , dd - day )
on Linux machine I type the following command in order to get: file date
as the following:
ls -l ...
0
votes
3answers
130 views
How to find largest files in a dir - ignoring directory sizes
I want to do something like this
du -a | sort -rn | head
But I want to extract files only, ignoring directories.
To be clear, I want to traverse through all sub-directories but I don't want to ...
1
vote
2answers
67 views
linux or solaris match files with uniq syntax
how to match all files that start with the string OS_PATCH
and ended with .gz
remark - the solution must to fit Linux and Solaris OS
this task could be by find command or maybe with ls with ...
-1
votes
3answers
90 views
List files and directories in linux [closed]
I am not very familiar with Linux. I have got root access of a server. When I run the command "ls" then it displays nothing. No error no information nothing. When I run "ls -l" it displays "total 0"
...
2
votes
1answer
209 views
'ls' taking a long time to list 20 subdirectories
I have a directory (my_dir) which has 20 sub directories. Every time I run 'ls' or try to autocomplete a file name in this directory my IO usage goes to 100% and it takes very long time (10 mins) to ...
2
votes
2answers
141 views
Is there a way to ls -l with like a -f option (like tail -f)?
Suppose I am extracting a huge file or slowly building up a huge file. Is there a way to have ls -lh "on" much like tail -f, so that I can constantly see the size of the file grow until I decide to ...
1
vote
0answers
173 views
Why does a file on an NFS mount seem to cache randomly, but no longer be cached when running `ls`?
Here's the mount configuration of an NFS mount, we'll call it server2, gotten from running cat /etc/mtab:
<ip1>:/mnt/fs101 /mnt/fs101 nfs ...
0
votes
3answers
503 views
Cannot remove or list directory (ls or rm) Linux - Debian
I have a log file directory at /var/log/apache2/vhosts on a Debian dedicated server. Every day I split the main access_log into respective vhostname.com_access_log files in /var/log/apache2/vhosts
In ...
15
votes
4answers
2k views
What is the difference between du -h and ls -lh?
I am having a difficult time grasping what is the correct way to read the size of the files since each command gives you varying results. I also came across a post at ...
1
vote
2answers
1k views
Why does ls -lh and ls -ldh give me varying file size?
Why is that there is a difference in the file sizes as denoted in the screenshot i.e. the total file size under ls -lh is 44k whilst the size of the folder is only 4k? Am I reading it incorrectly?
2
votes
5answers
567 views
ls returns nothing only in certain directories
I have a raid drive mounted here:
/data/
And certain directories like this one:
/data/somedir/somesubdir/
when I run
ls
w/ or w/o any flags, terminal doesn't return anything. It does not ...
4
votes
1answer
985 views
Folder size is greater than 4K on ext3
Lets say we have a default formatted ext3 filesystem, I run under the assumption that folders take 4K of space on the disk.
But, what does it mean when a folder is bigger than 4K?
Here is a pic of ...
22
votes
2answers
5k views
Colors in bash after piping through less?
When I have dircolors defined life is full of... color.
When I pipe ls through less to scroll around I lose the colors.
Any suggestions?
Thanks,
-Mathew
