Install Package List
Tagged with: command, file, install, Linux, list, package, text
Install a list of packages from a text file.
cat packages.txt | xargs apt-get install
Install a list of packages from a text file.
cat packages.txt | xargs apt-get install
Different way to use the rename command.
rename 's/.html$/.php/' *.html
Use this command to move files from folders two level deep to the current folder…
mv */*.* .
Use this command to find all the links in the current directory…
find . -lname "*"
You can use locate to find files with name that matches a said regexp…
locate -i -r '\.jpg$'
Double space a file with Ruby using the command
ruby -pe 'puts' < file.txt
Show list of files provided by a rpm package installed
rpm -ql package_name
First show system events. Second command show events inherent to the process of booting kernel.
tail /var/log/messages
tail /var/log/dmesg
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
Copy files/folder from a remote server to this system.
scp -r binnyva@192.168.0.100:/home/binnyva/folder_to_copy .