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

learn more… | top users | synonyms

0
votes
4answers
68 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
43 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
81 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
132 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
186 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
79 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
1answer
186 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
516 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
61 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
134 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: ...
2
votes
2answers
415 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
2k 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
924 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
2k 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
31 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
168 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
3k 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
160 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: ...
0
votes
0answers
70 views

proxy setting and updating after that

I have correctly set up the proxy in my terminal and it's not showing any trouble but after that i try to update the system by the command "apt-get update" and it's showing 0% [Connecting to ...
1
vote
2answers
143 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
204 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 ...