Use -C
option of tar:
tar zxvf <yourfile>.tar.gz -C /usr/src/
and then, the content of the tar should be in:
/usr/src/<yourfile>
Related Posts:
- What is the debian-sys-maint MySQL user (and more)?
- How should an IT department choose a standard Linux distribution?
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- “sed” command in bash
- WSL – GEDIT Unable to init server: Could not connect: Connection refused
- How to open some ports on Ubuntu?
- What is difference between arm64 and armhf?
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- “Unable to find remote helper for ‘https'” during git clone
- What is the difference between /etc/rc.local and ~/.bashrc?
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- Telnet [Unable to connect to remote host: Connection refused]
- wget returns “Unable to establish SSL connection”
- Curl : connection refused
- How to install Android SDK on Ubuntu?
- How do I install chkconfig on Ubuntu?
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- Bash script prints “Command Not Found” on empty lines
- List all mounts in Linux
- How to use sed to extract substring
- Bash export command
- How to edit gitignore file
- Adding a new entry to the PATH variable in ZSH
- python-dev installation error: ImportError: No module named apt_pkg
- how to search for a directory from the terminal in ubuntu
- Anyone else experiencing high rates of Linux server crashes during a leap second day?
- What are the functional differences between .profile .bash_profile and .bashrc
- How can I run Debian stable but install some packages from testing?
- What’s the best way of handling permissions for Apache 2’s user www-data in /var/www?
- Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- List of files installed from apt package
- How to install/change locale on Debian?
- How can I export the privileges from MySQL and then import to a new server?
- GPG does not have enough entropy
- df says disk is full, but it is not
- Is it possible to reboot a Linux OS without rebooting the hardware?
- Why don’t EC2 ubuntu images have swap?
- Heartbleed: how to reliably and portably check the OpenSSL version?
- Is there a proper way to clear logs?
- What does “debconf: delaying package configuration, since apt-utils is not installed” mean?
- What should I do when I got the KEYEXPIRED error message after an apt-get update?
- Command line program to test DHCP service
- How do I deal with a filename that starts with the hyphen (-) character?
- Chmod 777 to a folder and all contents [duplicate]
- Bash: No such file or directory?
- Confused about stdin, stdout and stderr?
- What’s a .sh file?
- Amazon Linux: apt-get: command not found
- How to set the environmental variable LD_LIBRARY_PATH in linux
- What’s a .sh file?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How can I symlink a file in Linux? [closed]
- How to fix ‘sudo: no tty present and no askpass program specified’ error?
- Kill detached screen session [closed]
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How do I grep recursively?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How do I grep recursively?
- Why do you need to put #!/bin/bash at the beginning of a script file?
- How to get the url of the current svn repo?
- What does pss mean in /proc/pid/smaps
- What is a clearfix?
- How do I find all files containing specific text on Linux?
- How to unmount a busy device
- How to unmount a busy device
- performing HTTP requests with cURL (using PROXY)
- Where can I find php.ini?
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- No space left on device
- How do I grep recursively?
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How to perform grep operation on all files in a directory?
- Amazon Linux: apt-get: command not found
- How to install grub after installing Windows 10
- Linux: ‘Username’ is not in the sudoers file. This incident will be reported
- how to find libstdc++.so.6: that contain GLIBCXX_3.4.19 for RHEL 6?
- How to extract C source code from .so file?
- Pass a password to ssh in pure bash
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- How to substitute shell variables in complex text files
- -bash: syntax error near unexpected token `newline’ for display command
- How can I recursively find all files in current and subfolders based on wildcard matching?
- 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?
- SSH using python script
- Curl command for https ( SSL )
- How can I exclude directories from grep -R?
- How to exclude a directory in find . command
- How can I exclude directories from grep -R?
- Changing the resolution of a VNC session in linux
- gcc: error: unrecognized command line option
- How to exclude a directory in find . command
- How can I find all *.js file in directory recursively in Linux?
- mysql_config not found when installing mysqldb python interface