Skip to main content

Posts

Showing posts with the label ubuntu

Easily search and use the commands that you had used in the past

Imagine a situation where you used a long command couple of minutes/hours ago and you have to use it again. Problem is that you cannot remember the exact command anymore. Reverse search is your savior here. You can search for the command in the history using a search term. Just use the keys ctrl+r to initiate reverse search and type some part of the command. It will look up into the history and will show you the commands that matches the search term. ctrl+r search_term By default, it will show just one result. To see more results matching your search term, you will have to use ctrl+r again and again. To quit reverse search, just use Ctrl+C.

Basic Linux commands

Linux has a basic impact in our life. However, getting started with Linux just make you discomfort for the first time. Because on Linux, you usually should use terminal commands instead of just clicking the launcher icon (as you did on Windows).But don't worry with experience of more than 3 years as a Developer i feel  Linux is best as using it.We will give you the mostly used linux commands. So let's get started with the list of 10 Linux Basic commands - 1. sudo ("superuser do") - Allows you to run other commands with administrative privileges. This is useful when, for example, you need to modify files in a directory that your user wouldn't normally have access to. $ sudo su 2.   ls ("list") - Lists all files and folders in your current working directory. You can also specify paths to other directories if you want to view their contents. /home$ ls 3. cd ("change directory") - Changes the directory you are currently working in. You can use ...

How to rename a file or directory in ubuntu from terminal

There is no rename function in Ubuntu Linux. Instead, you simply move the file, giving it a new name. If you don’t actually mv it to another directory, then you have effectively renamed it: mv filename_original filename_new If you are trying to rename a directory, you need to use the -r recursive flag: mv -r original_directoryname new_directoryname

How to Check the Ubuntu Version

How to Check the Ubuntu Version.         Command used : more /etc/issue      This will return something like this:      Output  : Ubuntu 14.04.5 LTS \n \l