03-17-2009
And when you do the same with 100MB?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am new to this forums and this is my first "asking help" message!
i have 2 problems:
1- for unknown reasons the "source" command is not avalable in my system (UBUNTU). i can't either see it in my bin directory!
2- again for unknown reasons the "login.cl" file in the home... (0 Replies)
Discussion started by: astrosona
0 Replies
2. UNIX for Dummies Questions & Answers
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
3. UNIX for Advanced & Expert Users
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
4. Shell Programming and Scripting
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
5. UNIX for Dummies Questions & Answers
Hi:
How can I remove my own post?
Thanks. (2 Replies)
Discussion started by: phil518
2 Replies
6. UNIX for Dummies Questions & Answers
When I do a listing in one particular directory (ls -al) I get:
total 43456
drwxrwxrwx 2 root root 4096
drwxrwxrwx 3 root root 4096
-rwxrwxr-x 1 nobody nobody 3701594
-rwxrwxr-x 1 nobody nobody 3108510
-rwxrwxr-x 1 nobody nobody 3070580
-rwxrwxr-x 1 nobody nobody 3099733
-rwxrwxr-x 1... (1 Reply)
Discussion started by: proactiveaditya
1 Replies
7. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
8. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
9. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT CENTOS
ntfstruncate
NTFSTRUNCATE(8) System Manager's Manual NTFSTRUNCATE(8)
NAME
ntfstruncate - truncate a file on an NTFS volume
SYNOPSIS
ntfstruncate [options] device file [attr-type [attr-name]] new-length
DESCRIPTION
ntfstruncate truncates (or extends) a specified attribute belonging to a file or directory, to a specified length.
OPTIONS
Below is a summary of all the options that ntfstruncate accepts. Nearly all options have two equivalent names. The short name is preceded
by - and the long name is preceded by --. Any single letter options, that don't take an argument, can be combined into a single command,
e.g. -fv is equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name.
-f, --force
This will override some sensible defaults, such as not using a mounted volume. Use this option with caution.
-h, --help
Show a list of options with a brief description of each one.
-l Display licensing information.
-n, --no-action
Simulate the truncation without actually write to device.
-q, --quiet
Suppress some debug/warning/error messages.
-v, --verbose
Display more debug/warning/error messages.
-V, --version
Show the version number, copyright and license of ntfstruncate.
attr-type
Define a particular attribute type to be truncated (advanced use only). By default, the unnamed $DATA attribute (the contents of a
plain file) will be truncated. The attribute has to be specified by a number in decimal or hexadecimal :
+-------------------------------------------+
|Hex Decimal Name |
|0x10 16 "$STANDARD_INFORMATION" |
|0x20 32 "$ATTRIBUTE_LIST" |
|0x30 48 "$FILE_NAME" |
|0x40 64 "$OBJECT_ID" |
|0x50 80 "$SECURITY_DESCRIPTOR" |
|0x60 96 "$VOLUME_NAME" |
|0x70 112 "$VOLUME_INFORMATION" |
|0x80 128 "$DATA" |
|0x90 144 "$INDEX_ROOT" |
|0xA0 160 "$INDEX_ALLOCATION" |
|0xB0 176 "$BITMAP" |
|0xC0 192 "$REPARSE_POINT" |
|0xD0 208 "$EA_INFORMATION" |
|0xE0 224 "$EA" |
|0xF0 240 "$PROPERTY_SET" |
|0x100 256 "$LOGGED_UTILITY_STREAM" |
+-------------------------------------------+
attr-name
Define the name of the particular attribute type to be truncated (advanced use only).
new-length
Specify the target size of the file. It will be rounded up to a multiple of the cluster size. A suffix of K, M, G, T, P or E may
be appended to mean a multiplicative factor of a power of 1000. Similarly a suffix of Ki, Mi, Gi, Ti, Pi or Ei may be appended to
mean a multiplicative factor of a power of 1024.
EXAMPLES
Resize to 100MB the file database.db located in the Data directory which is at the root of an NTFS file system.
ntfstruncate /dev/sda1 Data/database.db 100M
BUGS
There are no known problems with ntfstruncate. If you find a bug, please send an email describing the problem to the development team:
ntfs-3g-devel@lists.sf.net
AUTHORS
ntfstruncate was written by Anton Altaparmakov.
AVAILABILITY
ntfstruncate is part of the ntfs-3g package and is available from:
http://www.tuxera.com/community/
SEE ALSO
ntfs-3g(8), ntfsfallocate(8), ntfsprogs(8).
ntfs-3g 2017.3.23 June 2014 NTFSTRUNCATE(8)