I ran df -lP which gave me the following output:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.6G 2.2G 5.1G 30% /
varrun 506M 108K 506M 1% /var/run
varlock 506M 0 506M 0% /var/lock
udev 506M 44K 506M 1% /dev
devshm 506M 12K 506M 1% /dev/shm
lrm 506M 40M 467M 8% /lib/modules/2.6.24-26-generic/volatile
gvfs-fuse-daemon 7.6G 2.2G 5.1G 30% /home/vmadmin/.gvfs
How can I remove the line where it says /home/"can be anything"?
I can't use df -lP | sed '$d' because the output would be
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/sda1 7867856 3622668 3845524 49% /
tmpfs 513448 0 513448 0% /lib/init/rw
udev 507692 124 507568 1% /dev
tmpfs 513448 4 513444 1% /dev/shm
/home/"can be anything"means/home/, followed by any string of characters. It's the last line in the first block of output. – Flimm Jan 30 at 16:11df -lP | sed '$d'deletes the last line, as intended. I'm not sure why you're getting your results. – Flimm Jan 30 at 16:13