Browsing tag

linux commands

‘Sed’ Command In Linux: Useful Applications Explained

Have you ever needed to replace some text in a file really quickly? Then you have to open up your text editor, find the line, and then type out your replacement. What if you have to do that many times? What if it isn’t also exactly the same thing and you have to run multiple searches […]

The Ultimate A To Z List of Linux Commands | Linux Command Line Reference

Short Bytes: Linux distributions can leverage an extensive range of commands to accomplish various tasks. For most Linux distros, Bash (bourne again shell) is the default command-line interface or shell used to execute these commands. In this A to Z list of Linux commands, we have tried to include as many commands as possible which […]

5 Linux Commands Every Linux Newbie Must Know

Having a graphical user interface is very good for newcomers and it also makes our job easy for example placing an order in Amazon using browser is fairly easy but doing the same using terminal seems like an over-enthusiastic exercise. I like GUIs but at times when GUI fails to start, having the knowledge of […]

Linux Basic Commands

mkdir – make directories Usage: mkdir [OPTION] DIRECTORY… eg. mkdir lhn ls – list directory contents Usage: ls [OPTION]… [FILE]… eg. ls, ls ­l, ls lhn cd – changes directories Usage: cd [DIRECTORY] eg. cd lhn pwd ­-  print name of current working directory Usage: pwd vim – Vi Improved, a programmers text editor Usage: vim [OPTION] [file]… eg. vim lhn.txt cp – copy files and directories Usage: cp [OPTION]… SOURCE DEST eg. cp sample.txt sample_copy.txt cp sample_copy.txt target_dir mv – move (rename) files Usage: mv [OPTION]… SOURCE DEST eg. mv source.txt target_dir mv old.txt new.txt rm ­ remove files or directories Usage: rm [OPTION]… FILE… eg. rm file1.txt , rm ­rf some_dir find – search for files in a directory hierarchy Usage: find [OPTION] [path] [pattern] eg. find file1.txt, find ­name file1.txt history – prints recently used commands Usage: history cat – concatenate files and print on the standard output Usage: cat [OPTION] [FILE]… eg. cat file1.txt file2.txt cat ­n file1.txt echo – display a line of text Usage: echo [OPTION] [string] … eg. echo I love India echo $HOME grep ­- print lines matching a pattern Usage: grep [OPTION] PATTERN [FILE]… eg. grep ­i apple sample.txt  wc ­- print the number of newlines, words, and bytes in files Usage: wc [OPTION]… [FILE]… eg.  wc file1.txt wc ­L file1.txt sort – sort lines of text files Usage: sort [OPTION]… [FILE]… eg. sort file1.txt sort ­r file1.txt tar – to archive a file Usage: tar [OPTION] DEST SOURCE eg. tar ­cvf /home/archive.tar /home/original tar ­xvf /home/archive.tar […]