Some dpkg useful commands

Below are some useful parameters that can be used with dpkg to work with .deb packages.

$ sudo dpkg –get-selections Lists all installed packages $ sudo dpkg -l true* Lists all packages starting with true $ sudo dpkg -L truecrypt Lists all files installed by truecrypt $ sudo dpkg -i timeout.deb Install the timeout.deb package . . . → Read More: Some dpkg useful commands

Downgrade dd-wrt firmware from dd-wrt version 24461 to dd-wrt version 24160

Recently, there have been no upgrades to the dd-wrt firmware I use on my routers. Found that the last dd-wrt firmware version 24461, did not permit upgrades to newer firmware due to a bug in it. It also did not allow downgrades to a lower version of dd-wrt via the Web GUI interface or any . . . → Read More: Downgrade dd-wrt firmware from dd-wrt version 24461 to dd-wrt version 24160

Replace comma with new line in a text file using tr in Linux

If you have a CSV file and want to replace each comma with a carriage return or new line in Linux, you can do so using the tr command. Below is an illustration of how it can be done.

Open a terminal window, then type the following command.

$ cat mycsvfile.txt | tr ‘,’ ‘\n’ . . . → Read More: Replace comma with new line in a text file using tr in Linux

June 2019
M T W T F S S
« Feb    
 12
3456789
10111213141516
17181920212223
24252627282930