Skip to main content

Basic Linux commands



·        
In this article we would discuss some basic linux commands. These commands require to perform normal tasks. Make familiar yourself with these commands. In our previous article we have create a normal user now login from that user.
In bracket right most side is showing user name Vinita and beside @Server is the hostname of computer and further ~ sign is showing that user is presently logged in her home directory. But first, every Linux user has a home directory. You can use the tilde (~) to represent the home directory of any currently active user. For example, if your username is Vinita, your home directory is /home/Vinita. If you have logged in as the root user, your home directory is /root. Thus, the effect of the cd ~ command depends on your username. For example, if you have logged in as user Vickey, the cd ~ command brings you to the /home/Vickey directory. If you have logged in as the root user, this command brings you to the /root directory. You can list the contents of your home directory from anywhere in the directory tree with the ls ~ command. After bracket you can see the command prompt of normal user is $ sign.
$mkdir [ directory name ]
mkdir command is used to create new directory. Let’s create a example directory.
$mkdir example $ls example
now create a file. Syntax for creating file is
 $cat > [file name]
This command can be used in three way 
To see the contents of file
 
To create a new file
 
To append the contents of file.
$cat [file name] ------------------------ To see the contents of file
$cat > [file name]---------------------- To create a file
$cat >> [file name ]-------------------- To append the contents of file
Be little bit careful while using cat > command to create new file. If you accidently used this command with existing file it will overwrite the contents of file. Use CTRL+D to save the contents of file.
Different use of cat command
$cat > test This is test of file
$cat test This is test of file
$cat >> test This is second line
$cat example This is test of file This is second line in test file
$cat > test Now file will over write
$cat test Now file will overwrite
$cd [ destination directory path]
It is easy to change directories in Linux. Just use cd and name the absolute path of the desired directory. If you use the relative path, just remember that your final destination depends on the present working directory.
as you can see in the output of ls command file is in white color and directory is in blue color.
There are two path concepts associated with Linux directories: absolute paths and relative paths.
An absolute path describes the complete directory structure based on the top level directory, root (/).
A relative path is based on the current directory. Relative paths do not include the slash in front.
The difference between an absolute path and a relative one is important To know more about path and directory structure
pwd
In many configurations, you may not know where you are relative to the root (/) directory. The pwd command, which is short for print working directory, can tell you, relative to root (/). Once you know where you are, you can determine whether you need to move to a different directory.
$cd ..
this command is used to exit from current directory.
cp
The cp (copy) command allows you to take the contents of one file and place a copy with the same or different name in the directory of your choice. For example, the cp file1 file2 command takes the contents of file1 and saves the contents in file2. One of the dangers of cp is that it can easily overwrite files in different directories, without prompting you to make sure that's what you really wanted to do.
mv
You can't rename a file in Linux, you can move it. The mv command essentially puts a different label on a file. For example, the mv file1 file2command changes the name of file1 to file2. Unless you're moving the file to a different partition, everything about the file, including the inode number, remains the same.
rm
rm command is used to remove the regular files. It will ask before removing files.
rmdir
it will remove the empty directory. If directory is full then use rm –rf [directory name]

Comments

Popular posts from this blog

ഫെയ്‌സ്ബുക്ക് മെസഞ്ചറില്‍ ഇനി ശബ്ദസന്ദേശങ്ങള്‍ ടെക്സ്റ്റാക്കി അയക്കാം

ഫെയ്‌സ്ബുക്ക് മെസഞ്ചറില്‍ ഇനി ശബ്ദം ടെക്സ്റ്റ് മെസേജായി (Voice to Text) അയയ്ക്കാം. ഇതിനൊപ്പം വോയ്‌സ് മെസേജും ഉപയോക്താവിന് കേള്‍ക്കാന്‍ സൗകര്യമുണ്ടാകും. തിരക്കിട്ട സമയങ്ങളില്‍ വോയ്‌സ് മേസേജ് കേള്‍ക്കാന്‍ സമയമില്ലാത്തവര്‍ക്ക് ഉപകാരപ്രദമാകുന്നതാണ് പുതിയ ഫീച്ചര്‍. ഫെയ്‌സ്ബുക്ക് മെസഞ്ചര്‍ വഴി വോയ്‌സ് മെസേജ് അയയ്ക്കുന്നതിന് മുന്നോടിയായി, ശബ്ദസന്ദേശം റിക്കോര്‍ഡ് ചെയ്യാന്‍ മൈക്രോഫോണ്‍ ഐക്കണില്‍ ടാപ്പ് ചെയ്യണം. നിങ്ങള്‍ മെസേജ് അയച്ചുകഴിഞ്ഞാല്‍, ഫെയ്‌സ്ബുക്ക് ആ ശബ്ദസന്ദേശം ടെക്സ്റ്റാക്കി മാറ്റും. വോയ്‌സ് മെസേജിനരികിലുള്ള ഐക്കണില്‍ ടാപ്പ് ചെയ്താല്‍, ശബ്ദസന്ദേശത്തെ ടെക്സ്റ്റില്‍ കാട്ടിത്തരും. സ്പീച്ച് റിക്കഗ്നിഷന്‍ കമ്പനിയായ Wit.ai യെ ഫെയ്‌സ്ബുക്ക് അടുത്തയിടെ സ്വന്തമാക്കിയിരുന്നു. ഇവരുടെ സാങ്കേതികവിദ്യയുടെ അടിസ്ഥാനമാക്കിയാണ് ഫെയ്‌സ്ബുക്ക് മെസഞ്ചറിലെ പുതിയ ഫീച്ചര്‍ വന്നിരിക്കുന്നതെന്നാണ് നിരീക്ഷകര്‍ പറയുന്നത്. പുതിയ ഫീച്ചര്‍ ഇപ്പോള്‍ പരീക്ഷണാടിസ്ഥാനത്തിലാണ്. അധികം വൈകാതെ ഏവര്‍ക്കും ലഭിക്കും. ശബ്ദസന്ദേശം നല്‍കുന്നയാളുടെ ഉച്ഛാരണം, സംസാര രീതി, സംസാര വ്യക്തത തുട

വെര്‍ടു – ആറരലക്ഷം രൂപക്ക് ഒരു ആന്‍ഡ്രോയ്ഡ് സ്മാര്‍ട്ട്‌ ഫോണ്‍ – ഇപ്പോള്‍ ഇന്ത്യയിലും

എത്ര ലക്ഷവും മുടക്കി ആഡംബര സാദനങ്ങള്‍ വാങ്ങാന്‍ ആളുകള്‍ ഉണ്ടാകും. ഇയൊരു ചിന്തയാണ് വെര്‍ടു എന്ന പേരില്‍ വിലകൂടിയ മൊബൈല്‍ ഫോണ്‍ ശ്രേണി അവതരിപ്പിക്കാന്‍ നോക്കിയയ്ക്ക് പ്രചോദനമായത്. അങ്ങനെ 1998 ല്‍ ആദ്യ വെര്‍ടു ഫോണ്‍ പിറവിയെടുത്തു. ഇന്ദ്രനീലക്കല്ലുകൊണ്ടു കൊത്തിയുണ്ടാക്കിയ കീപാഡും വിലയേറിയ ടൈറ്റാനിയം ലോഹം കൊണ്ട് നിര്‍മിച്ച ബോഡിയുമെല്ലാമുളള വെര്‍ടുവിനെ പണക്കാര്‍ക്ക് പെട്ടെന്നിഷ്ടമാകുകയും ചെയ്തു. പിന്നീടങ്ങോട്ട് ലോകമെങ്ങുമുളള പണച്ചാക്കുകളുടെ കൈയിലെ സ്റ്റാറ്റസ് സിംബലായി വെര്‍ടു മൊബൈല്‍ ഫോണ്‍ മാറി. ഇപ്പോഴിതാ ടി.ഐ. എന്ന സ്മാര്‍ട്‌ഫോണ്‍ മോഡലുമായി വെര്‍ടു ഇന്ത്യയിലുമെത്തിയിരിക്കുന്നു. 6,49,990 രൂപയാണ് വെര്‍ടു ടി.ഐയ്ക്ക് ഇന്ത്യയിലെ വില. 2012 ല്‍ സാമ്പത്തികപ്രതിസന്ധി കാരണം വെര്‍ടുവിന്റെ 90 ശതമാനം ഓഹരികളും നോക്കിയ വിറ്റഴിച്ചു, പക്ഷെ കമ്പനി ഇപ്പോഴും നല്ല രീതിയില്‍ നടക്കുന്നുണ്ട്. കോടീശ്വരന്‍മാര്‍ ഏറെയുള്ള ഗള്‍ഫ് രാജ്യങ്ങളും റഷ്യയുമാണ് വെര്‍ടുവിന്റെ പ്രധാനവിപണി. മാസങ്ങള്‍ കൂടുമ്പോള്‍ ഓരോ മോഡലിറക്കി ആഡംബരവിപണിയിലെ തങ്ങളുടെ സാന്നിധ്യം

USB versions

USB 1.1: Released in August 1998, this is the first USB version to be widely adopted (the original version 1.0 never made it into consumer products). It has a top speed of 12Mbps (though in many cases only performs at 1.2Mbps). It's largely obsolete. USB 2.0: Released in April 2000, it has a max speed of 480Mbps in Hi-Speed mode, or 12Mbps in Full-Speed mode. It currently has the max power out put of 2.5V, 1.8A and is backward-compatible with USB 1.1. USB 3.0: Released in November 2008, USB 3.0 has the top speed of 5Gbps in SuperSpeed mode. A USB 3.0 port (and connector) is usually colored blue. USB 3.0 is backward-compatible with USB 2.0 but its port can deliver up to 5V, 1.8A of power. USB 3.1: Released in July 26, 2013, USB 3.1 doubles the speed of USB 3.0 to 10Gbps (now called SuperSpeed+ or SuperSpeed USB 10 Gbps), making it as fast as the original Thunderbolt standard. USB 3.1 is backward-compatible with USB 3.0 and USB 2.0. USB 3.1 has three power profiles (according to