LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2012, 11:23 PM   #1
tedb
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Terminal Stuff


Every time I launch a terminal I get this:

tar: option requires an argument -- 'f'
Try `tar --help' or `tar --usage' for more information.
[ted@localhost ~]$

Any ideas how I can fix this?

Thanks
 
Old 11-20-2012, 11:45 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Looks like something in your shell startup scripts is trying to run tar with incorrect options. Look in ~/.bashrc and ~/.bash_profile. If you don't see anything that looks suspicious, try looking in /etc/profile and all the scripts in /etc/profile.d.

Just to be clear -- this is the very first thing you see when opening up a new terminal window from within a graphical desktop, correct?
 
Old 11-21-2012, 08:19 AM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,195
Blog Entries: 10

Rep: Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986
Quote:
Originally Posted by tedb View Post
Every time I launch a terminal I get this:

tar: option requires an argument -- 'f'...
After the terminal is already open, what happens if you type "bash" in it? Error, or no?

Code:
env | grep tar
would be my suggestion on starting to track this down.
 
Old 11-21-2012, 10:22 AM   #4
tedb
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Answer

I get the same when I go into Bash. I edited my .bashrc file and setup aliases.

Not sure if it had something to do with that but I removed the tar alias I had setup.

Ted
 
Old 11-21-2012, 10:24 AM   #5
tedb
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
env | grep tar

Output:

LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31;0 1:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42w=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01 ;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:* .Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31 :*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7 z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01 ;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;3 5:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:* .mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm= 01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35 :*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.a ac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg= 01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
 
Old 11-21-2012, 10:34 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
If you're using bash shell then check:
Code:
cat .bashrc | grep tar
cat .bash_profile | grep tar
If it fetches any entry stating with tar, then simply edit .bashrc/.bash_profile file and put a # against that line.
Or if using csh/tcsh shell, then do the same with .cshrc or .tcshrc files.
And if still pb persists, then also check .login or any personal startup file.
 
Old 11-21-2012, 12:29 PM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,615

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
Try:
1. If your aliases are written on the .bashrc, try comment "#" them out and see what happens.
2. If they are not written somewhere you unalias it, or logout login should erase.

There might be something wrong with your aliasing that called tar or colors.
 
Old 11-21-2012, 10:21 PM   #8
tedb
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Terminal Stuff

It was a mistake in the .bashrc file.

Fixed now. Thanks Everyone!!

Ted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how do i stuff a keystroke into another virtual terminal's stdin? RandomTroll Linux - Software 13 10-14-2014 03:27 PM
[SOLVED] Gnome terminal 2.1.0, centos 5 - how to 'find' text listed on terminal screen linuxquestions_forum_use Linux - Newbie 2 12-21-2010 09:35 PM
Where can I get tutorials or tips in doing stuff with fedoras terminal? windowsNilo Linux - General 9 07-08-2008 10:24 PM
Terminal Printing a Bunch of Stuff at Startup Klogg Linux - General 5 05-01-2006 04:45 AM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 05:37 PM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration