You are right. It’s annoying behavior.
$ zcat foo.txt.gz
zcat: can't stat: foo.txt.gz (foo.txt.gz.Z): No such file or directory
Try this:
$ zcat < foo.txt.gz
asdfadsf
Related Posts:
- How do I deal with a filename that starts with the hyphen (-) character?
- Bash: No such file or directory?
- Why do you need to put #!/bin/bash at the beginning of a script file?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- Pass a password to ssh in pure bash
- -bash: syntax error near unexpected token `newline’ for display command
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- “sed” command in bash
- Explaining the ‘find -mtime’ command
- How does “cat << EOF" work in bash?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Extract file basename without path and extension in bash
- Given two directory trees, how can I find out which files differ by content?
- mv: cannot stat error : No such file or directory error
- Pseudo-terminal will not be allocated because stdin is not a terminal
- ./configure : /bin/sh^M : bad interpreter
- Trying to use bash on Windows and got no installed distributions message
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- -bash: fork: Cannot allocate memory
- Is there a “goto” statement in bash?
- Bash script: bad interpreter
- How to count lines in a document?
- What does `set -x` do?
- How to get the process ID to kill a nohup process?
- Writing a simple shell in C using fork/execvp
- chmod: changing permissions of ‘my_script.sh’: Operation not permitted
- tar: add all files and directories in current directory INCLUDING .svn and so on
- What does set -e mean in a bash script?
- What does set -e mean in a bash script?
- “find: paths must precede expression:” How do I specify a recursive search that also finds files in the current directory?
- Bash script prints “Command Not Found” on empty lines
- Pipe to/from the clipboard in a Bash script
- Linux Bash: Move multiple different files into same directory
- How do I write stderr to a file while using “tee” with a pipe?
- How to include file in a bash shell script
- How to enable Bash in Windows 10 developer preview?
- What does ‘bash -c’ do?
- bash sh – command not found
- How do I know the script file name in a Bash script?
- How can I sort du -h output by size
- What are the functional differences between .profile .bash_profile and .bashrc
- How to run a command multiple times, using bash shell?
- In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?
- How do I prevent accidental rm -rf /*?
- How do I sleep for a millisecond in bash or ksh
- What is “-bash: !”: event not found”
- What’s the best way to check if a volume is mounted in a Bash script?
- Keeping a linux process running after I logout
- What useful things can one add to one’s .bashrc? [closed]
- How to add a timestamp to bash script log?
- Colors in bash after piping through less?
- Linux command line best practices and tips?
- How to run command as user who has /usr/sbin/nologin as Shell?
- How to get pid of just started process
- Can you have more than one ~/.ssh/config file?
- SSH from A through B to C, using private key on B [closed]
- How can I fully log all bash scripts actions?
- How to sort ps output by process start time?
- How to apply a filter to real time output of `tail -f `?
- How to remove invalid characters from filenames?
- How do I find all files containing specific text on Linux?
- Where can I find php.ini?
- Linux: ‘Username’ is not in the sudoers file. This incident will be reported
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- How can I exclude directories from grep -R?
- How to exclude a directory in find . command
- Creating a new directory in C
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- TCP congestion control version: HTCP module vs highspeed module in linux kernel
- What is the difference between /etc/rc.local and ~/.bashrc?
- Snort Message – WARNING: No preprocessors configured for policy 0
- sed command with -i option failing on Mac, but works on Linux
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- How do I install chkconfig on Ubuntu?
- Copy multiple files from one directory to another from Linux shell
- Apache server keeps crashing, “caught SIGTERM, shutting down”
- tar: Error is not recoverable: exiting now
- python-dev installation error: ImportError: No module named apt_pkg
- how to properly mount external server directory for wordpress uploads
- Copying a large directory tree locally? cp or rsync?
- Check if port is open or closed on a Linux server?
- When does `cron.daily` run?
- How to reconnect to a disconnected ssh session
- Should I quit using Ifconfig?
- SSL Certificate Location on UNIX/Linux
- Force dig to resolve without using cache
- How to forcibly close a socket in TIME_WAIT?
- How to check if an RSA public / private key pair match
- Why does sudo command take long to execute?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- How to display certain lines from a text file in Linux?
- How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass?
- GPG does not have enough entropy
- Why don’t EC2 ubuntu images have swap?
- SSHFS mount that survives disconnect
- Temporarily ignore my `~/.ssh/known_hosts` file?
- How to get TX/RX bytes without ifconfig?
- Curl: disable certificate verification
- Practical maximum open file descriptors (ulimit -n) for a high volume system