Category: Linux
List all Installed RPMs by Size
February 5, 2008
Show space used by rpm packages installed sorted by size (fedora, redhat and like) rpm -q -a –qf “%10{SIZE}\t%{NAME}\n” |…
Reverse a File
February 5, 2008
This commands reverses a file in linux – the last line will be the first… tac file.txt tac = reverse…
Command to Sort Files by Size
February 1, 2008
Show size of the files and directories sorted by size du -sk * | sort -rn
Mount Windows Partion
January 28, 2008
Mount a Windows FAT partition. If it is an NTFS partion, use ‘ntfs’ instead of ‘fat’. Make sure that the…
Modify timestamp in Linux
January 27, 2008
Modify timestamp of a file or directory touch -t 0712250000 file #(YYMMDDhhmm)
Command to mount a Samba Share in Linux
January 26, 2008
Mount a windows network share in Linux using Samba mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share
Recent Comments