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
- Bash: No such file or directory?
- What’s a .sh file?
- How to unmount a busy device
- How to unmount a busy device
- No space left on device
- How can I exclude directories from grep -R?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Directory Inode vs Regular File Inode
- How to cat <
> a file containing code? - 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”?
- Is there a “goto” statement in bash?
- tar: Cowardly refusing to create an empty archive
- How can I delete a user in linux when the system says its currently used in a process
- Command to change the default home directory of a user
- Read and write to binary files in C?
- What does “&” at the end of a linux command mean?
- Can’t remove a directory in Unix
- C fopen vs open
- Why does “docker attach” hang?
- Retrieve last 100 lines logs
- What are various options / arguments for “./configure” in Linux
- CronJob not running
- Delete .DS_STORE files in current folder and all subfolders from command line on Mac
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- Can’t upload media to my Raspberry Pi WordPress server
- My WordPress is giving me an 403 error when saving post/draft with specific words
- Why is my crontab not working, and how can I troubleshoot it?
- Showing total progress in rsync: is it possible?
- How to bind MySQL server to more than one IP address?
- Why is “chmod -R 777 /” destructive?
- How to check if a library is installed?
- Is it normal to get hundreds of break-in attempts per day?
- How do I prevent accidental rm -rf /*?
- What does Virtual memory size in top mean?
- What’s the best way to check if a volume is mounted in a Bash script?
- How do I find the UUID of a filesystem
- Find out symbolic link target via command line
- Meaning of directories on Unix and Unix like systems
- How to handle security updates within Docker containers?
- Is it possible to make Nginx listen to different ports?
- REJECT vs DROP when using iptables
- 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
- How to disable everything in crontab -l?
- What is the maximum port number?
- How to sort ps output by process start time?
- protocol version mismatch — is your shell clean?
- Best location to keep SSL certificates and private keys on Ubuntu servers?
- How do I join two named pipes into single input stream in linux