Code Monkey home page Code Monkey logo

smb's Introduction

smb

smbclientでも.ssh/configみたいなことができるコマンド(主に自分用)

概要

smbclient //host名/ディレクトリ -U ユーザ名

と毎回やるのが面倒なので作った。
既にいっぱいあると思うし公式でももしかしたらあるのかもしれないけど見つけられなかった。

使い方

  1. python3をインストール
  2. smbをテキストエディタで開き、ターミナルから
which python3

と叩いて出てきたフルパスを先頭行に入力する。
3. パスの通ったところにsmbを配置して実行権限を与える。
4. ~/.smb/config を作って設定ファイルを書く。
5.

smb ホスト名 ディレクトリ名

を叩く。

設定ファイルの記法

基本的に.ssh/configと同じ。
ホスト名とユーザ名を指定する。ユーザ名を省略した場合は、カレントユーザ名が使われる。 例:

Host clara
    HostName  192.168.1.2
    User      example
Host ARIS
    HostName  192.168.1.3

Host の後に使用するホスト名を書き、インデントしてHostName Userの順に書く。インデント部分の先頭と区切り部分にはスペースかタブを使用できる。スペースの数の指定はない。

smb's People

Contributors

khiyowa avatar

Watchers

 avatar  avatar

smb's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.