Ubuntu Common Commands

Source: Internet
Author: User

1, LS
Ls-l |grep "^-" | Wc-l display the current folder file number
Ls-a Show hidden files

Ls-l *.log View the details of the specified suffix name file

2, check the size and usage of the partition
Df-h

3, Ubuntu 16.04 in the common way to access the service is SSH, check whether the server can be accessed via SSH to ask the solution is as follows:
(1) SSH localhost
Appears: Ssh:connect to host localhost Port 22:connection refused
(2) Installing sudo apt-get install Openssh-server
(3) Ps-e|grep ssh check

4. Copy and download server and client files

(1) Copy native/home/username/test Entire directory to the specified directory of the remote host user 192.168.0.172
sudo scp-r/home/username/test/[email protected]:/home/user/test
(2) Remote file/folder download
sudo scp-r [email protected]:/home/user/test/home/username/
(-r Copy folder, otherwise copy file)

5. Nvidia-smi View video card information

6, Conda Info--envs can find the path of Acaconda installation TensorFlow

7, Python; Import TensorFlow as TF; tf.__version__ (view version); tf.__path__ (view path)

8. SSH Login server: SSH [email protected] Address

Ubuntu Common Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.