sangkrit

Linux: Concatenate

cat command copies standard input to standard output. Cat is the short for concatenate. It concatenate file to a bigger of complete. echo one > section1 echo two > section2 echo three > section3 cat section1 section2 section3

Linux: Rename

Rename (rename) command can be used to rename many files at once according to the rule specified as the first argument.

Options: -v, –verbose Verbose: print names of files successfully renamed. -n, –no-act No Action: show what files would have been renamed. -f, –force Force: overwrite existing files.

Linux: File Content

Head Command: Head (head) command displays first ten lines of a file. Example: head /etc/passwd It can also display any other number of lines as per your need by writing the number of lines with command as shown in the following example. Example: head -5 /etc/passwd

Tail Command: Similar to head but as clear by [...]

Linux: Rename

Rename (rename) command can be used to rename many files at once according to the rule specified as the first argument.

Options: -v, –verbose Verbose: print names of files successfully renamed. -n, –no-act No Action: show what files would have been renamed. -f, –force Force: overwrite existing files.

Linux: Copying Files

[...]

Linux: Everything Is A File And Each File Is Case Sensitive

In Linux based operating system everything is a file. Directories are special kind files.

Linux Is Case Sensitive: Linux is case sensitive which means these files filename & Filename would be counted as two different files not one due to difference of f and F and thats why /home/filename is different from /home/filename.

Here [...]

Linux: Removing Directory

rmdir command is used for removing any directory in Linux operating system. Options: rmdir -p –parents remove DIRECTORY and its ancestors rmdir -v, –verbose output a diagnostic for every directory processed

Linux: Creating Directories

One can create his own directory in Linux using mkdir command. You have to give at least one parameter to mkdir, the name of the new directory to be created. Think before you type a leading / . mkdir -p Giving mkdir followed by -p creates parent directory as needed.

Other Options: -m, set file [...]

Linux: Showing File Size

Page 1 of 212