Posts

Showing posts with the label Unix

Creating Junk File in Unix

How to create Junk file in Unix Generally Junk files are created for testing the application developed and so on. Here I have show four methods to create Junk files in Unix: Method 1: using dd   dd if = /dev/zero of = filename.txt count = 1024 bs = 1024 bs--> Block Size. [1024 *1024 = 1MB file will be created] (or) dd if = /dev/zero of = filename.txt count = 1M bs = 1024  (1MB *1024=1GB file will be created) dd essentially copy that force to write every block of data (data will be unreadable but return 0) Method 2:  using  truncate truncate –S 10G file.txt It create a “sparse file” that cheats the file system and says that its has 10GB of data ,in other words it create a virtual data.This is fastest method for creating junk file. Method 3:  using  fallocate  fallocate –L 10 G file.txt It will allocate a 10 GB in memory in disk (not sparse file) but we will not have to worry about the data, which means a...

Online Unix Server for Free

Image
 Do you wanna work on Unix Platform ?    (with Internet)         No need of installing an Unix OS just follow the instruction below. Step 1: Ensure that Telnet is Enabled in your machine(If u dont know just visit the link)                To Install Telnet in your system click here Step 2: Go to linuxzoo.net Step 3: Create an account  Step 4:After that login with your email and password Step 5:Now click on Join queue Step 6: Click on "switch on" tab and wait for the boot progress to become complete Step 7:Now under connect Click on URL Telnet and a popup will appear (Ensure that popup are enabled in your browser) Step 8:Now Launch the application a telnet prompt will be opened              Login: root             Password: secure If u have any doubts watch this video Thats all now u can...

How to use Unix Commands in Windows

Image
   Do you wanna Enjoy the Comfort of Unix in Windows ?    (without internet)          No need of installing an Unix OS just follow the instruction below Step 1 :Download cygwin installer from internet                          Click here to goto download page Step 2: After Downloading open it Click Install from Internet Choose Direct Connection choose any one of the servers. After that click on Next till you get a window given below                                  Now Choose CUR on your top right and click on Next and proceed.It will take a lot time (Depends upon your connection) Step 3: After Downloading and Installation Completed.Now its time to configure system variables Step 4: Got MyComputer --> C drive --> cygwin --> bin ...