Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Linux Articles
Page 47 of 134
Cover the Tracks using covermyass
CoverMyAss is a penetration testing tool designed for the "covering tracks" phase of security assessments. It helps security professionals clean up evidence of their activities on target systems before exiting, or disable system logs for post-exploitation analysis. This tool is essential for ethical hackers and penetration testers who need to simulate real-world attack scenarios. How CoverMyAss Works The tool operates by systematically clearing or manipulating various system log files that record user activities, authentication attempts, and system events. It targets critical log files where evidence of unauthorized access might be stored, ensuring a thorough cleanup process. Target ...
Read MoreHow to change file or directory permission in Linux/Unix?
We know that Linux/Unix is a multiuser operating system where files and directories are associated with permissions so that only authorized users can access the files. The chmod command is used to change the access permission of files or directories. Syntax The general syntax of the chmod command is as follows − chmod [OPTION]... [Mode]... [File]... The chmod command contains three parameters that help set or change file permissions. Let's discuss each parameter in detail. Command Options A brief description of options available in the chmod command − ...
Read MoreHow to change the shell working directory in Linux?
To change the shell working directory, we use the cd command in the Linux system. The cd (change directory) command is one of the most fundamental navigation commands that allows users to move between different directories in the filesystem. cd (change directory) The cd command is used to change the current working directory in Linux/Unix operating systems. It is equivalent to the cd or chdir command in Windows. The command is also available in the EFI shell (Extensible Firmware Shell). By default, when you open a new terminal session, the current working directory is set to your home ...
Read MoreHow to check total space and available space in Linux using the terminal?
In Linux/Unix systems, the df (disk free) command is the primary tool for checking storage details and disk space usage. It displays total space, used space, and available space for mounted file systems through the terminal. df (disk free) command The df command reports file system disk space usage in the Linux system. By default, it shows space usage in 1K blocks, but various options make the output more readable and useful for different purposes. Syntax The general syntax of the df command is as follows: $ df [OPTION]... [FILE]... Common Options ...
Read MoreHow to compare two sorted files line by line in the Linux system?
To compare two sorted files line by line in Linux, we use the comm command. The comm command compares two sorted files and displays the differences and similarities in a structured three-column format. The comm command writes output to three tab-separated columns: the first column contains lines unique to the first file, the second column contains lines unique to the second file, and the third column contains lines common to both files. Both input files must be sorted for comm to work correctly. Syntax The general syntax of the comm command is − comm [OPTION]... ...
Read MoreHow to converts tabs to spaces in the Linux system?
While working with files, sometimes we encounter situations where a file contains many tabs and the requirement is to have spaces instead. For simple files, this conversion is easy, but for large files with numerous tabs, manual conversion becomes very difficult. This is where the expand command becomes essential. The expand command in Linux is used to convert tabs to spaces. If no file is specified, the expand command reads from standard input and processes the text accordingly. Syntax The general syntax of the expand command is as follows − expand [OPTION]... [FILE]... ...
Read MoreHow to copy a file, group of files, or directory in Linux?
The cp command is used to copy files or directories in Linux/Unix systems. It allows you to duplicate files from a source location to a destination directory. By default, cp works with files only − to copy directories, you must use the -R (recursive) option. Syntax The general syntax of the cp command is as follows − cp [OPTION]... [-T] SOURCE DESTINATION cp [OPTION]... SOURCE... DIRECTORY cp [OPTION]... -t DIRECTORY SOURCE... Common Options Option Description -R, -r, --recursive Copy directories recursively -i, --interactive Prompt ...
Read MoreHow to create a new directory in Linux using the terminal?
The mkdir command is used to create a new directory in the Linux/Unix operating system. It can create single or multiple directories at once and set permissions during creation, similar to the chmod command. Syntax The general syntax of the mkdir command is as follows − $ mkdir [OPTION]... [DIRECTORIES]... Command Options Option Description -m, --mode=MODE Set file permissions at the time of directory creation (like chmod) -p, --parents Create parent directories as needed; no error if directory exists -v, --verbose Display ...
Read MoreHow to create key binds in the Linux system using the terminal?
To set Readline key bindings and variables in the Linux system, we use the bind command. The bind command is used to assign functions and macros to keys, allowing you to create hotkeys instead of typing entire commands. It is a shell built-in command available in bash. Syntax The syntax of the bind command is as follows − bind [-lpsvPSVX] [-m KEYMAP] [-f FILENAME] [-q NAME] [-u NAME] [-r KEYSEQ] [-x KEYSEQ:shell-command] While the general syntax appears complex, the bind command is simple to use and allows you to easily create custom key bindings ...
Read MoreHow to list all users who are currently logged into the Linux system?
The who command is a fundamental Linux utility used to display information about users who are currently logged into the system. It shows details such as login names, terminal lines, login times, and remote hostnames. The who command is closely related to the w command, which displays additional information about user processes. Syntax The general syntax of the who command is − who [OPTION]... [ FILE | ARGUMENT1 ARGUMENT2 ] Common Options Option Description -a, --all Same as -b -d --login -p -r -t -T -u ...
Read More