LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-15-2015, 09:46 AM   #1
brjohnsmith
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
HEAD / TAIL - illegal instruction


Hi,

I am trying to use the command head and tail, but it failed, I have been receiving the erro - illegal instruction, does anyone know what is going on?

The rest of the commands, such as ls, mkdir, rm, etc..is working....

it is missing any updates? if so, how can I do it?

thank you for any help.

Greetings..
 
Old 07-15-2015, 09:57 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,317
Blog Entries: 1

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Are you passing any parameters to tail or head? -n 50? -c 30? Where -n is lines and -c is characters. Are you piping any data to head or tail?

# tail -f /var/log/syslog

$ cat /etc/motd | head -n 5

And various other use cases, they do not work as stand alone apps as they deal with data, not generate it.
 
Old 07-15-2015, 10:19 AM   #3
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
What's the output for these commands

Code:
which head
which tail
 
  


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
illegal instruction amartlk Linux - Newbie 4 11-03-2010 01:00 PM
Problems with illegal instruction ligang Linux - Embedded & Single-board computer 12 05-06-2010 03:24 PM
aticonfig illegal instruction tamtam Slackware 14 09-22-2006 09:27 PM
MPlex - Illegal Instruction RySk8er30 Linux - Software 1 01-22-2006 01:50 PM
Illegal instruction madsjakob Linux - Software 0 10-28-2003 08:25 AM


All times are GMT -5. The time now is 04:00 PM.

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