-2
私は、LinuxでターミナルでUnixコマンドを使用して新しいファイルを作成する方法はありますか?
is/log directory
の下に新しいファイルを作成したいです。
What is the unix command to create a new file ? I am using a putty Terminal .
私は、LinuxでターミナルでUnixコマンドを使用して新しいファイルを作成する方法はありますか?
is/log directory
の下に新しいファイルを作成したいです。
What is the unix command to create a new file ? I am using a putty Terminal .
あなたはおそらくtouch
を考えています。だから、私はいくつかのパスに新しいファイルを作成する場合:あなたはボーンの純粋主義者なら、あなたが使用することができ
$touch dir/subdir/foo.txt
を:
true > dir/subdir/foo.txt
これは、通常のビルトインをtrue
を使用していますシェルのno-opのように、stdoutを暗黙的にファイルを作成するファイルにリダイレクトします。
ありがとうございました@gregory – Saravanan
これを確認しましたかhttp://unix.stackexchange.com/questions/159672/how-to-create-a-simple-txt-text-file-using-terminal – thebenman
はい、はい。しかし、私はそのポストから何も得ていない。 @thebenman。 – Saravanan
@Saravananあなたはそれを読んでいないので...非常にソリューションが内部にあることははっきりしています。 –