Linux common command Daquan (very full!!!)

I have been dealing with Linux recently and it feels good. I think that Linux is more troublesome than Windows. Many things have to be controlled by commands. Of course, this is why many people like Linux, which is relatively short but powerful. I will list the commands I have learned for your reference:

System Informationarch Display Machine Processor Architecture (1) Uname -m shows the processor architecture of the machine (2) Uname -r shows the kernel version being used Dmidecode -q display hardware system components - (SMBIOS / DMI) Hdparm -i /dev/hda lists the architectural characteristics of a disk Hdparm -tT /dev/sda Perform a test read operation on disk Cat /proc/cpuinfo displays information about CPU info Cat /proc/interrupts shows interrupts Cat /proc/meminfo Verify memory usage Cat /proc/swaps shows which swaps are used Cat /proc/version shows the version of the kernel Cat /proc/net/dev shows network adapters and statistics Cat /proc/mounts shows the loaded file system Lspci -tv lists PCI devices Lsusb -tv display USB device Date shows the system date Cal 2007 shows the calendar of 2007 Date 041217002007.00 Set date and time - month, day, hour, year, second Clock -w save time changes to the BIOSShutdown (system shutdown, restart, and logout)shutdown -h now Shut down the system (1) Init 0 turn off the system (2) Telinit 0 shut down the system (3) Shutdown -h hours:minutes & Shut down the system at the scheduled time Shutdown -c Cancels the system to shut down by the scheduled time Shutdown -r now restart (1) Reboot Restart (2) LogoutFiles and directories cd /home Go to the '/ home' directory' Cd .. return to the previous directory Cd ../.. returns to the previous two levels of the directory Cd into the personal home directory Cd ~user1 enters the personal home directory Cd - returns the last directory Pwd shows the working path Ls View files in the directory Ls -F View files in the directory Ls -l shows the details of files and directories Ls -a shows hidden files Ls *[0-9]* displays the file name and directory name containing the number Tree shows the tree structure of files and directories starting from the root directory (1) Lstree shows the tree structure of files and directories starting from the root directory (2) Mkdir dir1 creates a directory called 'dir1' Mkdir dir1 dir2 creates two directories at the same time Mkdir -p /tmp/dir1/dir2 Create a directory tree Rm -f file1 delete a file called 'file1' Rmdir dir1 deletes a directory called 'dir1' Rm -rf dir1 delete a directory called 'dir1' and delete its contents at the same time Rm -rf dir1 dir2 delete both directories and their contents at the same time Mv dir1 new_dir rename/move a directory Cp file1 file2 copy a file Cp dir/* . Copy all files in a directory to the current working directory Cp -a /tmp/dir1 . Copy a directory to the current working directory Cp -a dir1 dir2 copy a directory Ln -s file1 lnk1 Create a soft link to a file or directory Ln file1 lnk1 creates a physical link to a file or directory Touch -t 0712250000 file1 Change the timestamp of a file or directory - (YYMMDDhhmm) File file1 outputs the mime type of the file as text Iconv -l lists known encodings Iconv -f fromEncoding -t toEncoding inputFile > outputFile creates a new from the given input file by assuming it is encoded in fromEncoding and converting it to toEncoding. Find . -maxdepth 1 -name *.jpg -print -exec convert "{}" -resize 80x60 "thumbs/{}" \; batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick)File Searchfind / -name file1 Start with '/' and enter the root file system to search for files and directories Find / -user user1 Search for files and directories belonging to user 'user1' Find /home/user1 -name \*.bin Search for the file ending with '.bin' in the directory '/ home/user1' Find /usr/bin -type f -atime +100 Search for executable files that have not been used in the past 100 days Find /usr/bin -type f -mtime -10 Search for files created or modified in 10 days Find / -name \*.rpm -exec chmod 755 '{}' \; Search for files ending in '.rpm' and define their permissions Find / -xdev -name \*.rpm Search for files ending in '.rpm', ignoring removable devices such as CD-ROM drives and printers Locate \*.ps Find files ending in '.ps' - Run the 'updatedb' command first Whereis halt displays the location of a binary file, source or man Which halt shows the full path to a binary or executableMount a filesystemmount /dev/hda2 /mnt/hda2 Mount a disk called hda2 - make sure the directory '/ mnt/hda2' already exists Umount /dev/hda2 Unload a disk called hda2 - first exit from mount point '/ mnt/hda2' Fuser -km /mnt/hda2 Forced uninstall when the device is busy Umount -n /mnt/hda2 Run the uninstall operation without writing to the /etc/mtab file - useful when the file is read-only or when the disk is full Mount /dev/fd0 /mnt/floppy mount a floppy disk Mount /dev/cdrom /mnt/cdrom mount a cdrom or dvdrom Mount /dev/hdc /mnt/cdrecorder mount a cdrw or dvdrom Mount /dev/hdb /mnt/cdrecorder mount a cdrw or dvdrom Mount -o loop file.iso /mnt/cdrom Mount a file or ISO image file Mount -t vfat /dev/hda5 /mnt/hda5 Mount a Windows FAT32 file system Mount /dev/sda1 /mnt/usbdisk mount a usb disk or flash device Mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share Mount a windows network shareDisk spacedf -h shows the list of mounted partitions Ls -lSr |more Sort files and directories by size Du -sh dir1 Estimate the directory 'dir1' used disk space' Du -sk * | sort -rn Displays the size of files and directories in order of size Rpm -q -a --qf '%10{SIZE}t%{NAME}n' | sort -k1,1n Displays the space used by the installed rpm package in order of size (fedora, redhat system) Dpkg-query -W -f='${Installed-Size;10}t${Package}n' | sort -k1,1n Displays the space used by the installed deb package based on size (ubuntu, debian system) )User and groupgroupadd group_name create a new user group Groupdel group_name delete a user group Groupmod -n new_group_name old_group_name Rename a user group Useradd -c "Name Surname " -g admin -d /home/user1 -s /bin/bash user1 Create a user belonging to the "admin" user group Useradd user1 create a new user Userdel -r user1 delete a user ( '-r' excludes home directory) Usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1 Modify user attributes Passwd modify password Passwd user1 modify a user's password (only root is allowed to execute) Chage -E 2005-12-31 user1 Setting the expiration date of the user password Pwck checks the file format and syntax fixes for '/etc/passwd' and the existing users Grpck checks the file format and syntax fixes for '/etc/passwd' and the existing groups Newgrp group_name Log in to a new group to change the preset group of newly created filesPermissions for files - Use "+" to set permissions, use "-" to cancel ls -lh display permissions Ls /tmp | pr -T5 -W$COLUMNS Divide the terminal into 5 columns Chmod ugo+rwx directory1 Sets the owner (u), group (g), and others (o) of the directory to read (r), write (w), and execute (x) permissions Chmod go-rwx directory1 delete group (g) and other people (o) read and write permissions to the directory Chown user1 file1 changes the owner property of a file Chown -R user1 directory1 Change the owner property of a directory and change the properties of all files in the directory. Chgrp group1 file1 group of changed files Chown user1:group1 file1 changes the owner and group properties of a file Find / -perm -u+s List all files in the system that use SUID control Chmod u+s /bin/file1 Set the SUID bit of a binary file - the user running the file is also given the same permissions as the owner Chmod u-s /bin/file1 disables the SUID bit of a binary file Chmod g+s /home/public sets the SGID bit of a directory - similar to SUID, but this is for the directory Chmod g-s /home/public disables the SGID bit of a directory Chmod o+t /home/public Set the STIKY bit of a file - only legal owners are allowed to delete files Chmod o-t /home/public disables the STIKY bit of a directorySpecial properties of the file - Use "+" to set permissions, use "-" to cancel chattr +a file1 Allow only read and write files in append mode Chattr +c file1 allows this file to be automatically compressed/decompressed by the kernel Chattr +d file1 The dump program will ignore this file during file system backups. Chattr +i file1 is set to an immutable file and cannot be deleted, modified, renamed or linked Chattr +s file1 allows a file to be safely deleted Chattr +S file1 Once the application has written to this file, the system immediately writes the modified result to disk. Chattr +u file1 If the file is deleted, the system will allow you to restore the deleted file later. Lsattr shows special propertiesPackage and compress filesbunzip2 file1.bz2 Unzip a file called 'file1.bz2' Bzip2 file1 compresses a file called 'file1' Gunzip file1.gz unzip a file called 'file1.gz' Gzip file1 compresses a file called 'file1' Gzip -9 file1 maximum compression Rar a file1.rar test_file Create a package called 'file1.rar' Rar a file1.rar file1 file2 dir1 compresses 'file1', 'file2' and directory 'dir1' at the same time Rar x file1.rar extract rar package Unrar x file1.rar Extract rar package Tar -cvf archive.tar file1 Create an uncompressed tarball Tar -cvf archive.tar file1 file2 dir1 Create an archive containing 'file1', 'file2' and 'dir1' Tar -tf archive.tar shows the contents of a package Tar -xvf archive.tar release a package Tar -xvf archive.tar -C /tmp Release the tarball to the /tmp directory Tar -cvfj archive.tar.bz2 dir1 Create a compressed package in bzip2 format Tar -jxvf archive.tar.bz2 Extract a compressed package in bzip2 format Tar -cvfz archive.tar.gz dir1 Create a zip file in gzip format Tar -zxvf archive.tar.gz Extract a compressed package in gzip format Zip file1.zip file1 Create a zip archive Zip -r file1.zip file1 file2 dir1 Compresses several files and directories into a zip archive at the same time Unzip file1.zip Unzip a zip format archiveRPM package - (Fedora, Redhat and similar systems)rpm -ivh package.rpm Install a rpm package Rpm -ivh --nodeeps package.rpm Install a rpm package and ignore the dependency warning Rpm -U package.rpm update a rpm package without changing its configuration file Rpm -F package.rpm Update a rpm package that is determined to be installed Rpm -e package_name.rpm delete a rpm package Rpm -qa displays all installed rpm packages in the system Rpm -qa | grep httpd Display all rpm packages with the word "httpd" in their name Rpm -qi package_name Get special information about an installed package Rpm -qg "System Environment/Daemons" shows a component rpm package Rpm -ql package_name displays a list of files provided by the installed rpm package Rpm -qc package_name displays a list of configuration files provided by an already installed rpm package Rpm -q package_name --whatrequires displays a list of dependencies with a rpm package Rpm -q package_name --whatprovides shows the volume occupied by a rpm package Rpm -q package_name --scripts shows the scripts executed during install/delete Rpm -q package_name --changelog shows the modification history of a rpm package Rpm -qf /etc/httpd/conf/httpd.conf Confirm which rpm package is provided by the given file Rpm -qp package.rpm -l displays a list of files provided by an rpm package that is not yet installed Rpm --import /media/cdrom/RPM-GPG-KEY Import public key digital certificate Rpm --checksig package.rpm to confirm the integrity of a rpm package Rpm -qa gpg-pubkey Confirm the integrity of all installed rpm packages Rpm -V package_name Check file size, permissions, type, owner, group, MD5 check, and last modification time Rpm -Va Check all installed rpm packages in the system - use with care Rpm -Vp package.rpm confirm that a rpm package is not installed yet Rpm2cpio package.rpm | cpio --extract --make-directories *bin* Run the executable from a rpm包 Rpm -ivh /usr/src/redhat/RPMS/`arch`/package.rpm Install a built package from a rpm source Rpmbuild --rebuild package_name.src.rpm build a rpm package from a rpm sourceYUM Package Upgrader - (Fedora, RedHat and similar) yum install package_name Download and install a rpm package Yum localinstall package_name.rpm will install a rpm package, use your own software repository to solve all dependencies for you Yum update package_name.rpm Update all installed rpm packages in the current system Yum update package_name update a rpm package Yum remove package_name delete a rpm package Yum list lists all packages installed on the current system Yum search package_name Search for packages in the rpm repository Yum clean packages clean up rpm cache to delete downloaded packages Yum clean headers delete all header files Yum clean all delete all cached packages and header filesDEB package (Debian, Ubuntu and similar systems)dpkg -i package.deb install/update a deb package Dpkg -r package_name removes a deb package from the system Dpkg -l displays all installed deb packages in the system Dpkg -l | grep httpd displays all deb packages containing the word "httpd" in their name Dpkg -s package_name Get information about a special package already installed in the system Dpkg -L package_name displays a list of files provided by a deb package already installed on the system Dpkg --contents package.deb displays a list of files provided by a package that has not been installed Dpkg -S /bin/ping confirm which deb package is provided by the given fileAPT software tools (Debian, Ubuntu and similar)apt-get install package_name install/update a deb package Apt-cdrom install package_name Install/update a deb package from the CD Apt-get update package in the upgrade list Apt-get upgrade upgrade all installed software Apt-get remove package_name removes a deb package from the system Apt-get check confirms that the dependent repository is correct Apt-get clean cleans up the cache from the downloaded package Apt-cache search searched-package returns the name of the package containing the string to be searchedView file contentscat file1 View the contents of the file forward from the first byte Tac file1 View the contents of a file in reverse from the last line More file1 View the contents of a long file Less file1 is similar to the 'more' command, but it allows the same reverse operation in the file as the forward operation Head -2 file1 View the first two lines of a file Tail -2 file1 View the last two lines of a file Tail -f /var/log/messages View live content added to a fileText processingcat file1 file2 ... | command <> file1_in.txt_or_file1_out.txt general syntax for text manipulation using PIPE, STDIN and STDOUT Cat file1 | command( sed, grep, awk, grep, etc...) > result.txt merges the detailed description text of a file and writes the introduction to a new file Cat file1 | command( sed, grep, awk, grep, etc...) >> result.txt merges the detailed description text of a file and writes the description to an existing file Grep Aug /var/log/messages Find the keyword "Aug" in the file '/var/log/messages' Grep ^Aug /var/log/messages Find words starting with "Aug" in the file '/var/log/messages' Grep [0-9] /var/log/messages Select all rows containing numbers in the '/var/log/messages' file Grep Aug -R /var/log/* Search for the string "Aug" in the directory '/var/log' and subsequent directories Sed 's/stringa1/stringa2/g' example.txt Replace "string1" in the example.txt file with "string2" Sed '/^$/d' example.txt remove all blank lines from the example.txt file Sed '/ *#/d; /^$/d' example.txt Remove all comments and blank lines from the example.txt file Echo 'esempio' | tr '[:lower:]' '[:upper:]' merges the contents of the upper and lower cells Sed -e '1d' result.txt Exclude the first line from the file example.txt Sed -n '/stringa1/p' View the line containing only the word "string1" Sed -e 's/ *$//' example.txt delete the last whitespace character of each line Sed -e 's/stringa1//g' example.txt remove only the vocabulary "string1" from the document and keep all remaining Sed -n '1,5p;5q' example.txt View the contents from the first line to the fifth line Sed -n '5p;5q' example.txt View line 5 Sed -e 's/00*/0/g' example.txt replace multiple zeros with a single zero Cat -n file1 indicates the number of lines in the file Cat example.txt | awk 'NR%2==1' Delete all even lines in the example.txt file Echo a b c | awk '{print $1}' View the first column of a line Echo a b c | awk '{print $1,$3}' View the first and third columns of a line Paste file1 file2 merge two files or two columns of content Paste -d '+' file1 file2 Combine the contents of two files or two columns, with "+" in the middle Sort file1 file2 sorts the contents of two files Sort file1 file2 | uniq Take the union of two files (repeated rows only one copy) Sort file1 file2 | uniq -u delete intersection, leaving other rows Sort file1 file2 | uniq -d Take the intersection of two files (only the files that exist in both files) Comm -1 file1 file2 Compare the contents of two files and only delete the contents of 'file1' Comm -2 file1 file2 Compare the contents of two files and only delete the contents of 'file2' Comm -3 file1 file2 Compare the contents of two files and delete only the parts common to both filesCharacter set and file format conversiondos2unix filedos.txt fileunix.txt Convert a text file format from MSDOS to UNIX Unix2dos fileunix.txt filedos.txt Convert a text file format from UNIX to MSDOS Recode ..HTML < page.txt > page.html Convert a text file to html Recode -l | more Show all allowed conversion formatsFile System Analysisbadblocks -v /dev/hda1 Check for bad magnetic blocks on disk hda1 Fsck /dev/hda1 fix/check the integrity of the linux filesystem on hda1 disk Fsck.ext2 /dev/hda1 Fix/check the integrity of the ext2 filesystem on hda1 disk E2fsck /dev/hda1 Fix/check the integrity of the ext2 filesystem on hda1 disk E2fsck -j /dev/hda1 Fix/check the integrity of the ext3 filesystem on hda1 disk Fsck.ext3 /dev/hda1 Fix/check the integrity of the ext3 filesystem on hda1 disk Fsck.vfat /dev/hda1 Fix/check the integrity of the fat file system on the hda1 disk Fsck.msdos /dev/hda1 Fix/check the integrity of the dos filesystem on hda1 disk Dosfsck /dev/hda1 Fix/check the integrity of the dos filesystem on hda1 diskInitialize a filesystemmkfs /dev/hda1 Create a filesystem on the hda1 partition Mke2fs /dev/hda1 Create a linux ext2 filesystem on the hda1 partition Mke2fs -j /dev/hda1 Create a linux ext3 (log type) filesystem on the hda1 partition Mkfs -t vfat 32 -F /dev/hda1 Create a FAT32 file system Fdformat -n /dev/fd0 Format a floppy disk Mkswap /dev/hda3 create a swap file systemSWAP file systemmkswap /dev/hda3 Create a swap file system Swapon /dev/hda3 Enable a new swap file system Swapon /dev/hda2 /dev/hdb3 Enable two swap partitionsBackupdump -0aj -f /tmp/home0.bak /home Make a full backup of the '/home' directory Dump -1aj -f /tmp/home0.bak /home Make an interactive backup of the '/home' directory Restore -if /tmp/home0.bak Restore an interactive backup Rsync -rogpav --delete /home /tmp Synchronize the directories on both sides Rsync -rogpav -e ssh --delete /home ip_address:/tmp rsync via SSH channel Rsync -az -e ssh --delete ip_addr:/home/public /home/local Synchronize a remote directory to a local directory via ssh and compression Rsync -az -e ssh --delete /home/local ip_addr:/home/public Synchronize local directories to remote directories via ssh and compression Dd bs=1M if=/dev/hda | gzip | ssh [email protected]_addr 'dd of=hda.gz' Perform a backup of the local disk on the remote host via ssh Dd if=/dev/sda of=/tmp/file1 Back up disk contents to a file Tar -Puf backup.tar /home/user Perform an interactive backup of the '/home/user' directory ( cd /tmp/local/ && tar c . ) | ssh -C [email protected]_addr 'cd /home/share/ && tar x -p' Copy a directory content in a remote directory via ssh ( tar c /home ) | ssh -C [email protected]_addr 'cd /home/backup-home && tar x -p' Copy a local directory in the remote directory via ssh Tar cf - . | (cd /tmp/backup ; tar xf - ) Copy a directory locally to another location, retaining the original permissions and links Find /home/user1 -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents Find and copy all files ending in '.txt' from one directory to another Find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2 Find all files ending with '.log' and make a bzip package Dd if=/dev/hda of=/dev/fd0 bs=512 count=1 Do an action to copy the contents of the MBR (Master Boot Record) to the floppy disk Dd if=/dev/fd0 of=/dev/hda bs=512 count=1 Restore MBR content from a backup that has been saved to a floppy diskDisccdrecord -v gracetime=2 dev=/dev/cdrom -eject blank=fast -force Clear a rewritable disc content Mkisofs /dev/cdrom > cd.iso Create an iso image of a disc on disk Mkisofs /dev/cdrom | gzip > cd_iso.gz Create a compressed CD iso image on disk Mkisofs -J -allow-leading-dots -R -V "Label CD" -iso-level 4 -o ./cd.iso data_cd Create an iso image of a directory Cdrecord -v dev=/dev/cdrom cd.iso Burn an ISO image file Gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom - Burn a compressed ISO image file Mount -o loop cd.iso /mnt/iso Mount an ISO image file Cd-paranoia -B from a CD to a wav file Cd-paranoia -- "-3" from a CD to a wav file (parameter-3) Cdrecord --scanbus scan bus to identify scsi channel Dd if=/dev/hdc | md5sum Verify the md5sum encoding of a device, such as a CDNetwork - (Ethernet and WIFI Wireless ) Ifconfig eth0 shows the configuration of an Ethernet card Ifup eth0 enables an 'eth0' network device Ifdown eth0 disables an 'eth0' network device Ifconfig eth0 192.168.1.1 netmask 255.255.255.0 Control IP address Ifconfig eth0 promisc set 'eth0' to promiscuous mode to sniff packets (sniffing) Dhclient eth0 enables 'eth0' in dhcp mode Route -n show routing table Route add -net 0/0 gw IP_Gateway configura default gateway Route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 configure static route to reach network '192.168.0.0/16' Route del 0/0 gw IP_gateway remove static route Echo "1" > /proc/sys/net/ipv4/ip_forward activate ip routing Hostname show hostname of system Host www.example.com lookup hostname to resolve name to ip address and viceversa(1) Nslookup www.example.com lookup hostname to resolve name to ip address and viceversa(2) Ip link show show link status of all interfaces Mii-tool eth0 show link status of 'eth0' Ethtool eth0 show statistics of network card 'eth0' Netstat -tup show all active network connections and their PID Netstat -tupl show all network services listening on the system and their PID Tcpdump tcp port 80 show all HTTP traffic Iwlist scan show wireless networks Iwconfig eth1 show configuration of a wireless network card Hostname show hostname Host www.example.com lookup hostname to resolve name to ip address and viceversa Nslookup www.example.com lookup hostname to resolve name to ip address and viceversa Whois www.example.com lookup on Whois database

JPS tool

Jps (Java Virtual Machine Process Status Tool) is a command provided by JDK 1.5 to display all current java process pids. It is simple and practical. It is very suitable for simple observation of the current java process on the linux/unix platform.

I think a lot of people have used the ps command in the Unix system. This command is mainly used to display the current system process, which processes, and their ids. The same is true for jps. Its function is to display the current java process status of the system, and its id number. We can use it to see how we started several java processes (because each java program will monopolize a java virtual machine instance), and their process number (for the following programs), and can be viewed by opt Detailed startup parameters for these processes.

Usage: Play jps under the current command line (requires JAVA_HOME, if not, go to the directory of the modified program).

Jps is stored in JAVA_HOME/bin/jps. Please add JAVA_HOME/bin/ to Path for convenience.

$> jps 23991 Jps 23789 BossMain 23651 Resin

More commonly used parameters:

-q only displays pid, does not display the class name, jar file name and parameters passed to the main method $>jps -q 28680 23789 23651

-m outputs the argument passed to the main method, which may be null on the embedded jvm

$> jps -m 28715 Jps -m 23789 BossMain 23651 Resin -socketwait 32768 -stdout /data/aoxj/resin/log/stdout.log -stderr /data/aoxj/resin/log/stderr.log

-l output the full package name of the application main class or the full path name of the application's jar file

$> jps -l 28729 sun.tools.jps.Jps 23789 com.asiainfo.aimc.bossbi.BossMain 23651 com.caucho.server.resin.Resin

-v Output parameters passed to the JVM

$> jps -v 23789 BossMain 28802 Jps -Denv.class.path=/data/aoxj/bossbi/twsecurity/java/trustwork140.jar:/data/aoxj/bossbi/twsecurity/java/:/data/aoxj/bossbi/twsecurity/java/twcmcc.jar:/data/aoxj/jdk15/lib/rt.jar:/data/aoxj/jd

k15/lib/tools.jar -Dapplication.home=/data/aoxj/jdk15 -Xms8m 23651 Resin -Xss1m -Dresin.home=/data/aoxj/resin -Dserver.root=/data/aoxj/resin -Djava.util.logging.manager=com.caucho.log.LogManagerImpl -

Djavax.management.builder.initial=com.caucho.jmx.MBeanServerBuilderImpl

Sudo jps see the most complete number of processes

jps 192.168.0.77

List all jvm instances of the remote server 192.168.0.77 machine, using the rmi protocol, the default connection port is 1099

(provided that the remote server provides the jstatd service)

Note: There is a bad place in the jps command. It seems that only the java process of the current user can be displayed. To display other users, you can only use the Unix command of unix/linux.

GO TOP INDEX ^  Microsoft Windows networks (SAMBA)  nbtscan ip_addr netbios name resolution  nmblookup -A ip_addr netbios name resolution  smbclient -L ip_addr/hostname show remote shares of a windows host  smbget -Rr smb://ip_addr/share like wget can download files from a host windows via smb  mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share mount a windows network share