w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to append list of home directory to a text file and how to move files?
  1. What command I can use to append a full list of objects of my home directory to a file "report.txt". Assume I am in different directory?

    ls -la ~ > report.txt

  2. What command I can use to move all files in my directory that begin with either a, b, or c, to a subdirectory, sorting, of my current directory?

    mv a* b* c* yourdirectory

  3. If I go to /proc directory. What does this command do?

    cd 'ps | grep ps| cut -f 1'

    This command will give "bash: cd: ps | grep ps| cut -f 1: No such file or directory" error





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.