Posts Tagged With: file

Install Package List

Tagged with: , , , , , ,

Install a list of packages from a text file.


cat packages.txt | xargs apt-get install
No Comments »

Rename Command

Tagged with: , , , ,

Different way to use the rename command.


rename 's/.html$/.php/' *.html
No Comments »

Move files from Folder 2 Levels Deep

Tagged with: , , , , , , , ,

Use this command to move files from folders two level deep to the current folder…


mv */*.* .
1 Comment »

Find Link Files

Tagged with: , , , ,

Use this command to find all the links in the current directory…


find . -lname "*"
No Comments »

Locate Files With Names Matching A Regexp

Tagged with: , , , , , , , , ,

You can use locate to find files with name that matches a said regexp…


locate -i -r '\.jpg$'
No Comments »

Double space a file using Ruby

Tagged with: , , , , , ,

Double space a file with Ruby using the command


ruby -pe 'puts' < file.txt
No Comments »

List Files Provided by Package

Tagged with: , , , , , ,

Show list of files provided by a rpm package installed


rpm -ql package_name
No Comments »

Important Logs

Tagged with: , , , , , , , , ,

First show system events. Second command show events inherent to the process of booting kernel.


tail /var/log/messages
tail /var/log/dmesg
2 Comments »

Use DD to Create File of any Size

Tagged with: , , , , ,

Use the DD command to create a 10 MB (10*1024*1024=10485760 bytes) size file named testfile_10MB


dd if=/dev/zero of=testfile_10MB bs=10485760 count=1

Original Article

1 Comment »

SCP Copy from Remote to Local System

Tagged with: , , , , , ,

Copy files/folder from a remote server to this system.


scp -r binnyva@192.168.0.100:/home/binnyva/folder_to_copy .
No Comments »