AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-660555

alper's questions

Martin Hope
alper
Asked: 2020-07-08 06:02:55 +0800 CST

tar:p:无法打开:没有这样的文件或目录

  • 0

我在file.tar.gz 文件所在的目录中。我想umask通过使用该-p (--preserve)选项来忽略。但我无法用-p标志解压它。可能是什么原因?

  • tar -xvfp file.tar.gz# 不起作用
  • tar -xvf file.tar.gz # 当我删除p它的时候
$ ls *file.tar.gz
file.tar.gz

$ tar -xvfp file.tar.gz
tar: p: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

$ tar -xvf file.tar.gz
file.txt
tar
  • 2 个回答
  • 1884 Views
Martin Hope
alper
Asked: 2020-06-30 02:33:36 +0800 CST

bash 命令确定它是重新启动后的第一个 ssh 连接吗?

  • 1

像下面的答案Bash 命令确定特定时间段的第一次登录,而不是我想检查的持续时间,以检查用户是第一次连接到机器使用ssh。

是否可以找出特定用户?

command-line ssh bash
  • 1 个回答
  • 92 Views
Martin Hope
alper
Asked: 2018-04-14 05:17:47 +0800 CST

如何强制 gdrive 将文件夹下载为压缩文件?

  • 3

Ubuntu 版本:14.04.5 LTS.

gdrive 是用于与 Google Drive 交互的命令行实用程序。

我已经用特定用户初始化gdrive(https://github.com/prasmussen/gdrive )。作为示例gdrive about返回其信息。

我们可以下载上传的文件夹的方式如下:

gdrive [global] download [options] <fileId>

如需更多信息,请键入:gdrive help download。

我想通过使用gdrive download压缩来下载一个文件夹。有什么方法可以强制下载压缩的文件夹吗?

google-drive
  • 1 个回答
  • 1045 Views
Martin Hope
alper
Asked: 2018-04-04 04:33:22 +0800 CST

如何更改 gdrive 上的用户?

  • 6

Ubuntu 版本:14.04.5 LTS.

gdrive 是用于与 Google Drive 交互的命令行实用程序。

我已经用特定用户初始化gdrive(https://github.com/prasmussen/gdrive )。作为示例gdrive about返回其信息。

我的安装方式gdrive:

$ go get github.com/prasmussen/gdrive
$ gopath=$(go env | grep 'GOPATH' | cut -d "=" -f 2 | tr -d '"')
$ echo 'export PATH=$PATH:$gopath/bin' >> ~/.profile
$ source .profile
$ gdrive about # This line authenticates the user only once on the same node.
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=...e=state
Enter verification code:

gdrive about
User: userName userSurname, <[email protected]>
Used: 6.5 GB
Free: 9.6 GB
Total: 16.1 GB
Max upload size: 5.2 TB

gdrive我想使用全新的用户电子邮件地址再次重新初始化/重新验证。

[Q]有没有办法用其他邮箱地址更改用户信息?

如果我删除gdrive并重新安装它,这可能是一个解决方案吗?

google-drive
  • 2 个回答
  • 3275 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve