cat : A Linux Command Line tool , is used to view the contents of a .txt file.

learn more… | top users | synonyms

2
votes
4answers
93 views

how can I List files in order

I had an 18GB file I needed to download on a less than great Internet connection. Torrenting wasn't an option. So I busted up the file into 100 segments, and eventually, all of it downloaded. Now I ...
2
votes
2answers
62 views

I just ran cat /dev/zero and now cat is hanging

I ran cat /dev/zero and it now just hangs whenever I run a cat command. I pressed Ctrl+C to stop that command. Have I broken something, and how can I fix it?
0
votes
3answers
60 views

Can someone give me a rundown of the 'cat' command and what it's used for?

I'm an intermediate, possibly more on the beginner side, user of bash and the terminal. I've seen the cat command come up in some online stuff, and I was just curious as to what it did, and what it's ...
0
votes
1answer
18 views

cat showing file content but mousepad and abiword won't

As the question says, I need to edit my /proc/acpi/wakeup file, but when I open it with any text editor, it shows blank file. cat command, on the other hand, displays correct file contents in ...
21
votes
2answers
568 views

When run cat says: “Hello, nothing to see here! Move along!”

PLEASE NOTE: To view the comments on this and the extended discussion on this, which includes all that has been tried, please look at this chat room. Today when I ran the cat command, instead of ...
-4
votes
2answers
34 views

get two files together [duplicate]

how could I get two files together like this file1.txt: ROW 1 3 5 654 56 5 56 65 6 54 4 3345 35 53 3 32 2 1 ROW2 6 65 456 67 687 78 89 657 435 34 534 5 435 5 2 file4.txt: ...
0
votes
0answers
28 views

Unzipping splitted zip archive

I've a zip file (7.9 GB) on my ubuntu server which created with this command : zip -9 -r sc.zip FOLDER/ And then split it to 2 parts split -b 4294966367 -d sc.zip sc-part Now I have sc-part00 ...
1
vote
1answer
40 views

Why does the more command not work when bound to a keyboard shortcut?

I have two commands that both work in terminal: notify-send "$(more /home/tim/autest.sh | head -1)" and notify-send "$(cat /home/tim/autest.sh | head -1)" putting them in a script like this: #! ...
0
votes
2answers
68 views

HDD backups are larger than physical disk size

So, I currently use Ubuntu mostly for backing up data on broken computers. Recently, though, I wanted to back up a system completely. The harddrive had 300GB of storage. I mounted the main partition ...
1
vote
3answers
76 views

How to cat in for loop

I have 500 folders containing many *_1.fastq.gz and *_2.fastq.gz files per folder. I want to: cat *_1.fastq.gz > Combined *_1.fastq.gz & cat *_2.fastq.gz > Combined_2.fastq.gz per ...
1
vote
0answers
27 views

Disappearing files in the cat command

I am handling a rather large dataset. I have 238 files, for whcih I would like to import their content into excel. In order to do so, I am creating a combined txt file using cat *.pdb > ...
2
votes
2answers
263 views

GZip of drive image created by using `dd` command

I created yesterday a drive image using GZip. I opened the 51.3 GiB file named ssd.img.gz to see one icon thats a package of 3.9 GiB, yes, thats THree point Nine Gigabytes in size and has the name of ...
0
votes
0answers
21 views

Not able to see the file contents

I am using 12.04 Ubuntu cloud image.But when I am using vi for example vi p1.c to create a file I am not able to see what are the contents I am adding to it. But when I am using cat p1.c I am able to ...
1
vote
1answer
103 views

How do I 'cat' a text file but start from the bottom instead of top

I have a very big text log file of about 37MB. Using cat file | more I can view the file contents one page at a time. The problem is that this always starts from the top - the old entries. How can ...
0
votes
0answers
44 views

Why is cat command returning the prompt only?

I'm trying to use the cat command to read a simple txt file in the terminal but after entering in command, the prompt just returns slightly modified with the current working directory. could it ...
1
vote
1answer
556 views

cat vs grep vs awk command get the file content which one is more efficient and less time consuming?

Lets say I have file content like this: this is a simple file for testing purpose with few lines in it. to check the cat and grep command to verfy which is best and less excution time consuming ...
0
votes
4answers
443 views

How does one read the contents of a text file located on the desktop using the terminal? [closed]

I recently failed to properly upgrade from ubuntu 12.10 to 14.10 and I'm having all sorts of GUI issues with Unity, Gnome & other interfaces as soon as I log in. I don't have access to most basic ...
0
votes
2answers
55 views

Quick question about users in my computer [duplicate]

I was taking a look for questions, and I started to read this thread. One of the answers says to use the command cat /etc/passwd|grep '/bin/bash', to test if there's other users in the computer. For ...
0
votes
2answers
152 views

How to replace a string of text with input from another file

I am working on a script to configure a server. Basically the script installs several services and copies configuration files in to place. I would like to replace the username in one of the ...
3
votes
2answers
152 views

If I cat file to other file is there way to get them separate again?

If I use cat pic1.png >> pic2.png is there way to get the pic1.png out of that pic2.png? I know it works if I simply use some archive file and just simply unarchive it but I want to know is it ...
1
vote
2answers
288 views

cat command replace text Linux shell script

I have shell script file. In there is code like: <tag>port:8080</tag>. I want to replace this code line with another code line: <tag>port:3128</tag>. How do I do that? I used ...
1
vote
2answers
119 views

How to display line numbers with pygmentize

I often use the command pygmentize filename.py to show color source files with code formatting. This works like a charm. I now also want to show line numbers like cat -n filename.py does. I read ...
0
votes
2answers
435 views

ERROR : [cat: File does not exist] I can't open hadoop output file in 14.04

I have installed hadoop-1.0.3 in my system(14.04), followed this tutorial. And I successfully run an sample mapreduce program for wordcount as follows, hadoopuser@arul-PC:/usr/local/hadoop$ ...
1
vote
1answer
662 views

How do I write a script to output an html file?

What am I doing wrong in this script? #!/bin/bash cat > /tmp/flash-viewer.htm <<- _EOF_ <HTML><HEAD><TITLE>Flash Viewer</TITLE></HEAD><BODY> <object ...
1
vote
1answer
117 views

One command for ls and cat functionality?

Okay guys, this is an experimental question warning! I often confuse cat and ls when quickly working on the console. Not because I forget their meanings, no. Just because I type without deeply ...
1
vote
1answer
275 views

What is the correct output of cat /etc/apt/sources.list

I have ubuntu 12.04 lts and i need the correct output because i edited it because it wasn't working but it has only made it worse thank you for your help
22
votes
2answers
1k views

What's wrong with my cat command? [closed]

I lent a friend a computer with Ubuntu 12.04 LTS on it, and he messed up the cat command. $ cat testfile.txt cat: meow! $ Can someone tell me how to fix this? please? Output of which cat: ...
4
votes
2answers
919 views

Cat to named pipe causes hang

I'm attempting some streaming with FFMpeg, and I think I have finally found the solution I need to screen blanking. This requires writing PNG's to a named pipe and then having FFMpeg read them as an ...
9
votes
3answers
3k views

Difference between cat and sudo cat? [duplicate]

Can you tell me what the difference is between cat and sudo cat? All I know so far is that cat is used for displaying contents of file and concatenation.
2
votes
1answer
2k views

omit filenames in grep

I am greping a string from multiple files, but the one undesired side effect, is the filename prefacing the output. How can I suppress the filename outputs using only grep? $ grep -i lp lpNet* ...
1
vote
1answer
4k views

cat: write error: Broken pipe

I'm running a command: cat urls.txt | xargs -L 1 -P 5 timeout 40 wget This downloads all the URLs in urls.txt This used to work fine, but recently I changed the URLs I am downloading from ...
0
votes
1answer
37 views

Can I discover the format of archive?

Not long I have decided to make a compress of my archives .deb / tar.gz, on only one archive. No problem I compress, and I used split command to break that archive in many parts to (upload - backup) ...
3
votes
3answers
278 views

cat and Pipe to Run Command Won't Take Two Arguments

I have been using this command: cat urls.txt | xargs -n 1 -P 10 wget -q to download text files of URLs. This worked fine when my URL file was like: http://domain1.com/page.html ...
20
votes
6answers
6k views

Can `cat` show files using code markup in colors?

Sometimes I quickly want to view the contents of a file from the command line. For this I of course use cat, but it is often source files in Python, Java or simple HTML. For these files it would be ...
1
vote
1answer
235 views

Terminal in Cat Mode says -s: command not found

awhile ago i was installing something and doing some stuff with terminal, and i think i messed it up. on the terminal app it says "Terminal - cat - 80x24" then inside terminal it says: Last login: ...
1
vote
1answer
168 views

What is the right way to exit the interactive CLI of the command “rev”?

Please check the code below and notice the difference between exiting the cat command and rev command heer@heer-pc:~$ cat mark mark ^C heer@heer-pc:~$ rev mark kram ^Cheer@heer-pc:~$
1
vote
1answer
355 views

How to read the all files in a directory and display them using cat command?

I have a directory employer/. In this there are 5 .txt files. I want to combine the data from all 5 files and show into the command prompt using cat or create another file and save the result in that ...
1
vote
1answer
112 views

Read lpstat output in reverse order?

Is it possible to make lpstat output print jobs in reverse order, from newer to older? Starting from the end of file? Currently we see in the output the first sent document, then the second, etc. I ...