Pages

Tuesday, August 1, 2017

One Line Tips

1) env -i :  To ignore environmental variables in Shell Script

2) ls -n : To list filenames with UID and GID instead of username and groupname

3) Ctrl + c, : Sends SIGINT (2)

4) Ctrl + z : Sends SIGTSTP (20) 

5) kill -9  : Send signal 9 SIGKILL. Default kill signal is 15 (SIGTERM)

6) man -k <man page regex>  : To search for a valid man page name.

7) pwdx <PID>  : Reports the current working directory of a Process

8) lsblk  : list block devices with output [ NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT ]

9) blkid  : Command-line utility to print block device attributes. Like UUID, LABEL, Partition type

10) e2label  : Check/Change the label on an ext2/ext3/ext4 filesystem. Syntax : e2label device [ new-label ]

11) ?  : What does question mark mean in Linux : It is a single character wild card

12) tar -r - To Append a new file to existing archive

13) tar -u - To update the archive with a new file and update the old files if anything new.

14) ftp> dir -Rl <filename>  Will transfer the list of files recursively to <filename> to local folder.

zip -ur existing.zip myFolder

No comments:

Post a Comment