Implementing RAID0

0 comments

Here in this Video you will see how to implement RAID0

  • Like the post? Please Subscribe to free RSS feed to get updates
  • FILE'S and FOLDER'S Part-2

    0 comments

    FILES & FOLDERS PART-II



    CREATING FOLDERS :
    Cmd4a : Creating a single folder.
    #mkdir foldername

    Example :
    #mkdir test

    Cmd4b : Creating multiple folders at a time
    #mkdir 1{1,2,3}
    This command will create folders with name 11,12,13. You can see weather this folders are created or not by using ls or dir command.



    Cmd4c : Creating multiple directories and sub directories at a time. This is very much advanced and very much useful command. Some times we have to create a directory structure with sub directories in it. Which are not exist before.
    For example I want to create the directory structure as below
                   /test
                    / \
                  /     \
               /           \
          user1       user2
           /  \            /  \
        /       \        /      \
     /            \    /          \
    apple   goa pine     tom


    So if I want to create these many folders at a time i have to execute the following commands.
    First i have to create test directory, then I have to change the directory to it and the create two more directories as user1 and user2 and so on as below.
    #mkdir test
    #cd test
    #mkdir user1
    #mkdir user2
    #cd user1
    #mkdir apple
    #mkdir goa
    #cd ..
    #cd user2
    #mkdir pine
    #mkdir tom

    So you see these many commands i have to execute to create that directory structure. But in linux, its very much easy if you know this option with mkdir command. Execute the mkdir command with -p option it will create subdirectories though they didnt exist.


    #mkdir -p test/{user1/{apple,goa}, user2/{pine,tom}}

    Thats it you are done. This will create all the folders and sub folders.
    Plese visit for remaining posts on files and folders operations..

  • Like the post? Please Subscribe to free RSS feed to get updates
  • 0 comments

    FILES & FOLDERS PART-I
    There is one saying in Linux/*nix world, that if you can play with files and folders in Unix you are almost there to become a Unix expert. So let us start our first lesson to become Unix expert by learning about files and folder operations.

    CREATING FILES:


    Cmd1 : Use touch command to create empty file's
    to create file's
    SYNTAX:
    #touch filename
    Example:
    #touch test
    To create multiple files at a time..
    #touch {filename1 filename2 filename3}
    #touch {1,2,3}{4,5,6}
    The above command will create files with 14,15,16,24,25,26,34,35,36 as names by using this you can create n number of files at a time.

    For checking weather your files/folders are created you can use ls command.



    Please check linuxnix.com for updates.

    Cmd2 : Creating files using cat command in combination of output redirecting operator(>)
    #cat > filename
    Once enter this command you have to enter the content of the file and once you finish it just press Ctrl+d this will save the file. Use again ls command to display the files created.

    Cmd3 : Creating a file with any editor(either VI,emacs etc)
    #vi filename
    Once you execute this command the file will be opened and in order to enter any data we have to first press i to go in to insert mode. Once you type the content in to the file just press esc and :wq to save and quit the file.

    Have look at other related posts too.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here