20171116

Comandos en Linux para usuarios Windows

WindowsUNIX / LINUXAction
DIRls -l (or use ls -lF)(-a all files) 
(df -k Space remaining on filesystem)
List directory contents
DIR *.* /o-d
DIR *.* /v /os
DIR /s
DIR /aa
ls -tr
ls -ls
ls -R
ls -a
List directory contents by reverse time of modification/creation.
List files and size
List directory/sub-directory contents recursively.
List hidden files.
TREEls -RList directory recursivly
CDcdChange directory
MKDIR
MD
mkdirMake a new directory
ASSIGNlnCreate a file or directory link
RMDIR
RD
rmdirRemove a directory
CHDIRpwdDisplay directory location
DEL
ERASE
rm -ivRemove a file
RMDIR /S (NT)
DELTREE (Win 95...)
rm -RRemove all directories and files below given directory
COPYcp -pivCopy a file
XCOPYcp -RCopy all file of directory recursivly
RENAME or MOVEmv -ivRename/move a file
TYPEcatDump contents of a file to users screen
MOREmorePipe output a single page at a time
HELP or COMMAND /?manOnline manuals
CLSclear
ctrl-l
Clear screen
EXIT
EXIT0
exit
exit 0
Exit a shell
FIND
FINDSTR
grepLook for a word in files given in command line
COMPdiffCompare two files and show differences. Also see comm, cmp, mgdiff and tkdiff.
FCdiffCompare two files and show differences. Also see comm, cmp, mgdiff and tkdiff.
SETset and envList all environment variables
SET variable=value
echo %variable%
set
export variable=value
echo $variable
Set environment variables
Show environment variables
ECHO textecho textEcho text to screen
SET variablesetenv (for C shell) or export VAR=val(for Korn shell. Also VAR=val)Set environment variables
PATH
PATH %PATH%;C:\DIR
echo $PATH
PATH=$PATH:/dir
Display search path for executables.
Set PATH environment variable.
PROMPT $p$gexport PS1='\h(\u)\W> 'Set user command prompt.
DATE or TIMEdateShow date. (also set date - DOS only)
DOSKEY /hhistoryList command history
DOSKEY NAME=commandalias NAME=commandSet command alias
BREAK ONtrapTrap ctrl-break / Trap signals.
SORTsortSort data alphabetically/numerically
EDLINedLine mode editor
EDIT filename.txtpicognpvixeditxemacs,dtpadEdit a file. The Linux editor which looks most like DOS edit is probably Pico. (Not a recomendation!)
BACKUP files A:\tar -cvf /dev/fd0 files 
mdirmcopy 
doswrite -a file (AIX only)
Save files to floppy. 
See Using DOS floppies
RESTORE A:\ filestar -xvf /dev/fd0 files 
mdirmcopy 
dosread -a file (AIX only)
Read files from floppy. 
See Using DOS floppies
ATTRIB [+r|-r] [+a|-a] [+s|-s] [path\file] /schmodChange file permissions. DOS: +:set to -:remove r:Read only a:Archive s:System /s:recursively
ATTRIB +h or -hmv file .fileChange file to a hidden file - rename file with prefix "."
PRINTlprPrint a file
CALL
COMMAND /C (DOS), CMD (NT)
source script (cshrc)
script (bash)
sh script
Execute script from within batch shell.
MEMfree 
top
Show free memory on system
TASKLIST (WIN2K, XP)ps -aux 
top
List executable name, process ID number and memory usage of active processes
MSDlsdevShow system info (Command borrowed from AIX)
SCANDISK 
DEFRAG C:
fsck 
debugfs
Check and repair hard drive file system
CHDISKdu -sDisk usage.
FDISKfdiskTool to partition a hard drive.
SUBST V: C:\directory\pathmountMount a drive letter to a folder/directory on your hard drive.
FORMATmke2fs 
See: fdformat and mformat for floppies
Format drive file system. 
For floppy drive use see YoLinux Tutorial Using DOS Floppies with Linux
VERuname -a 
echo $SHELL
cat /etc/issue
Operating system/shell version
pkziptar and zipCompress and uncompress files/directories. Use tar to create compilation of a directory before compressing. Linux also has compressgzip
HOSTNAMEhostnamePrint host name of computer
PINGpingSend packets to a network host
TRACERTtracerouteShow routes and router hops to given network destination.
IPCONFIG (NT)
WINIPCFG (Win 95...)
ifconfigDisplay/configure network interface
NBTSTAT (Netbios info: -n, -c)
NBTSTAT -A IP-address
nslookup host-name
host host-name
Print DNS info for host.
NBTSTAT -a hostnamenmblookup -A hostnamelookup NetBIOS names.
ROUTE PRINTroute -nPrint routing table.
NET HELP STARTchkconfig --list |grep onList services.
NET STARTservice-name
NET STOPservice-name
service service-name start
service service-name stop
Start/stop service/daemon.
NET SHARESdfShow mounted shares/filesystems.
NET SEND <node-name> <message> (NT)smbclient -M MS-Windows-host-name
talk
Send pop-up to a MS/Windows PC
Send message to another Unix/Linux user. See YoLinux tutorial
WINstartxStart X-Windows.
REBOOTshutdown -r nowReboot system.

No hay comentarios:

Publicar un comentario