Rm can’t delete file

chmod 777 -R /mnt rm -rf /mnt/* rm: cannot remove 'omitted': Read-only file system rm: cannot remove 'omitted': Read-only file system Please show me how I can do this? Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please … Read more

How does /dev/fd relate to /proc/self/fd/?

$ ls -l /dev/stdin /dev/fd/0 lrwx—— 1 tim tim 64 2011-08-07 09:53 /dev/fd/0 -> /dev/pts/2 lrwxrwxrwx 1 root root 15 2011-08-06 08:14 /dev/stdin -> /proc/self/fd/0 $ ls -l /dev/pts/2 /proc/self/fd/0 crw–w—- 1 tim tty 136, 2 2011-08-07 09:54 /dev/pts/2 lrwx—— 1 tim tim 64 2011-08-07 09:54 /proc/self/fd/0 -> /dev/pts/2 What differences and relations are between … Read more

X “Can’t open display: :0” while DISPLAY variable is correct

I’m not able to start any GUI applications as a root user: # pgrep -lf Xorg 1590 /usr/bin/Xorg -br -nolisten tcp :0 vt7 -auth /var/lib/xdm/authdir/authfiles/A:0-PNnJzp # echo $DISPLAY :0 # xeyes No protocol specified Error: Can't open display: :0 # firefox No protocol specified No protocol specified Error: cannot open display: :0 # xcalc No … Read more

Number of files per directory

I have a directory with about 100000 small files (each file is from 1-3 lines, each file is a text file). In size the directory isn’t very big (< 2GB). This data lives in a professionally administered NFS server. The server runs Linux. I think the filesystem is ext3, but I don’t know for sure. Also, I don’t have root access to the server.