Search Results for: ftp

Change shell properties with Linux shopt command

Bash shopt command explained  with examples Shopt(SHell OPTions) is a built-in command to change the properties of a shell such as.. Its history behavior Spell check Enable special characters for echo command by default and many more. This is an excellent command which give more control on Shell for you when you are working on bash and sh shells. This command is available after bash v2 and not available in other shells such as ksh, csh etc. Lets get familiarize with shopt command with some examples. Example1: To enable an option with shopt you have to use -s (Set) option shopt -s optiontype Example.. shopt -s nullglob Example2: To disable already set option use -u along with shopt shopt -u optiontype Example3: To see what are the options set or unset execute below command. shopt or shopt -p sample output autocd off cdable_vars off cdspell off checkhash off checkjobs off checkwinsize on cmdhist on compat31 off compat32 off compat40 off compat41 off dirspell off dotglob off execfail off expand_aliases on extdebug off extglob off extquote on failglob off force_fignore on globstar off gnu_errfmt off histappend on histreedit off histverify off hostcomplete on huponexit off interactive_comments on lastpipe off lithist off login_shell off mailwarn off no_empty_cmd_completion off nocaseglob off nocasematch off nullglob off progcomp on promptvars on restricted_shell off shift_verbose off sourcepath on xpg_echo off Example4: To get help on shopt...

Read More

25+ Awesome Linux/Unix command chaining examples

Command chaining is a concept to execute two or more commands in one execution to increase. productivity Reduce system resource usage (In some cases) Short and sweet codes. These are supported by almost every shell we know. Today we will learn how to use different command chaining operators available for us in an easy way. Command chaining operators & --Sends process background (so we can run multiple process parallel) ; --Run multiple commands in one run, sequentially. --To type larger command in multiple lines && --Logical AND operator || --Logical OR operator ! -NOT operator ( Thanks for mgd@interbaun.com...

Read More

23 Linux cd command examples

This is a basic post to show you what we can do with cd command to reduce your time spending at terminal by using alias, tips and some shortcuts. cd(Change Directory) is a basic command which is used to change your working directory from one to other. Here are some productivity tips and some less known tips to you people. Feel free to comment on this. Example 1: Change working directory to /abc/xyz pwd /home/surendra cd /abc/xyz pwd /abc/xyz Example 2: Change directory from present working directory to /var/ftp to /var/ftp/pub using absolute path. Share Image pwd /var/ftp cd /var/ftp/pub pwd /var/ftp/pub Example 3: Change directory from present working directory /var/ftp to /var/ftp/pub using relative path. To understand below command we should know more about Absolute and Relative path. pwd /var/ftp cd pub pwd /var/ftp/pub Example 4: Change working directory to user’s home directory from anywhere in the directory structure. pwd /etc/samba cd ~ Example 5: One more way to achive above us just cd command as shown below. cd pwd /home/surendra Example 6: Sometimes we want to change directory to the previous working directory and come back to where we are. We can use “cd -” which will take us to the previous working directory. This is vary much useful cd command. cd – Example 7: Change working directory to present working directory. This command is of no use because this will...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.